Skip to content

Commit

Permalink
Updated Documentation and Feature Parity with Java API
Browse files Browse the repository at this point in the history
Updated Documentation and Feature Parity with Java API
  • Loading branch information
SendSafely-GitHub committed Feb 11, 2018
1 parent ab93598 commit 98e5f77
Show file tree
Hide file tree
Showing 16 changed files with 842 additions and 1,751 deletions.
1,482 changes: 804 additions & 678 deletions SendsafelyAPI/ClientAPI.cs
100755 → 100644

Large diffs are not rendered by default.

Empty file modified SendsafelyAPI/Objects/Connection.cs
100755 → 100644
Empty file.
Empty file modified SendsafelyAPI/Objects/ConnectionStrings.cs
100755 → 100644
Empty file.
Empty file modified SendsafelyAPI/Objects/EnterpriseInformationResponse.cs
100755 → 100644
Empty file.
Empty file modified SendsafelyAPI/Objects/GetOrganizationPakagesResponse.cs
100755 → 100644
Empty file.
Empty file modified SendsafelyAPI/Objects/PackageDTO.cs
100755 → 100644
Empty file.
Empty file modified SendsafelyAPI/Objects/PackageInformationResponse.cs
100755 → 100644
Empty file.
18 changes: 18 additions & 0 deletions SendsafelyAPI/PackageInformation.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -124,36 +124,54 @@ public DateTime PackageTimestamp
set { packageTimestamp = value; }
}

/// <summary>
/// The Package Owner of the package.
/// </summary>
public String PackageOwner
{
get { return packageOwner; }
set { packageOwner = value; }
}

/// <summary>
/// The state of the pakage.
/// </summary>
public String State
{
get { return state; }
set { state = value; }
}

/// <summary>
/// The status of the package.
/// </summary>
public PackageStatus Status
{
get { return status; }
set { status = value; }
}

/// <summary>
/// The root directory of a workspace package.
/// </summary>
public String RootDirectoryId
{
get { return rootDirectoryId; }
set { rootDirectoryId = value; }
}

/// <summary>
/// The package descriptor.
/// </summary>
public String PackageDescriptor
{
get { return packageDescriptor; }
set { packageDescriptor = value; }
}

/// <summary>
/// The flag specifying the package is a workspace.
/// </summary>
public Boolean IsWorkspace
{
get { return isWorkspace; }
Expand Down
Empty file modified SendsafelyAPI/Properties/AssemblyInfo.cs
100755 → 100644
Empty file.
3 changes: 3 additions & 0 deletions SendsafelyAPI/Recipient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public List<Confirmation> Confirmations
set { confirmations = value; }
}

/// <summary>
/// The role name associate with the recipient.
/// </summary>
public String RoleName
{
get { return roleName; }
Expand Down
17 changes: 17 additions & 0 deletions SendsafelyAPI/Utilities/PackageUtility.cs
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,23 @@ public String CreateContactGroup(String groupName)
return response.ContactGroupId;
}

public String CreateContactGroup(String groupName, String isEnterpriseGroup)
{

Endpoint p = ConnectionStrings.Endpoints["createContactGroup"].Clone();

AddContactGroupRequest request = new AddContactGroupRequest();
request.GroupName = groupName;
request.IsEnterpriseGroup = isEnterpriseGroup;
AddContactGroupResponse response = connection.Send<AddContactGroupResponse>(p, request);

if (response.Response != APIResponse.SUCCESS)
{
throw new ActionFailedException(response.Response.ToString(), response.Message);
}
return response.ContactGroupId;
}

public void DeleteContactGroup(string groupId)
{

Expand Down
Binary file removed SendsafelyAPI/bin/Debug/BouncyCastle.Crypto.dll
Binary file not shown.
Binary file removed SendsafelyAPI/bin/Debug/Newtonsoft.Json.dll
Binary file not shown.
1,073 changes: 0 additions & 1,073 deletions SendsafelyAPI/bin/Debug/SendsafelyAPI.XML

This file was deleted.

Binary file removed SendsafelyAPI/bin/Debug/SendsafelyAPI.dll
Binary file not shown.
Binary file removed SendsafelyAPI/obj/Debug/SendsafelyAPI.dll
Binary file not shown.

0 comments on commit 98e5f77

Please sign in to comment.