public GroupMember InviteMember( GroupId groupId, GroupMember groupMember ) { string path = template.UrlFor (UrlTemplate.GROUPS_MEMBER_PATH) .Replace("{groupId}", groupId.Id ) .Build (); Silanis.ESL.API.GroupMember apiGroupMember = new GroupMemberConverter(groupMember).ToAPIGroupMember(); try { string json = JsonConvert.SerializeObject (apiGroupMember, settings); string response = restClient.Post(path, json); Silanis.ESL.API.GroupMember apiResponse = JsonConvert.DeserializeObject<Silanis.ESL.API.GroupMember> (response); return new GroupMemberConverter( apiResponse ).ToSDKGroupMember(); } catch (Exception e) { throw new EslException ("Could not create a new package." + " Exception: " + e.Message); } }
public GroupMember InviteMember(GroupId groupId, GroupMember groupMember) { string path = template.UrlFor(UrlTemplate.GROUPS_MEMBER_PATH) .Replace("{groupId}", groupId.Id) .Build(); Silanis.ESL.API.GroupMember apiGroupMember = new GroupMemberConverter(groupMember).ToAPIGroupMember(); try { string json = JsonConvert.SerializeObject(apiGroupMember, settings); string response = restClient.Post(path, json); Silanis.ESL.API.GroupMember apiResponse = JsonConvert.DeserializeObject <Silanis.ESL.API.GroupMember> (response); return(new GroupMemberConverter(apiResponse).ToSDKGroupMember()); } catch (Exception e) { throw new EslException("Could not create a new package." + " Exception: " + e.Message); } }
public Group InviteMember( GroupId groupId, GroupMember groupMember ) { Silanis.ESL.API.GroupMember apiGroupMember = new GroupMemberConverter(groupMember).ToAPIGroupMember(); Silanis.ESL.API.Group apiResponse = apiClient.InviteMember( groupId.Id, apiGroupMember ); return new GroupConverter( apiResponse ).ToSDKGroup(); }
public Group InviteMember(GroupId groupId, GroupMember groupMember) { Silanis.ESL.API.GroupMember apiGroupMember = new GroupMemberConverter(groupMember).ToAPIGroupMember(); Silanis.ESL.API.Group apiResponse = apiClient.InviteMember(groupId.Id, apiGroupMember); return(new GroupConverter(apiResponse).ToSDKGroup()); }
public GroupMember AddMember(GroupId groupId, GroupMember groupMember) { OneSpanSign.API.GroupMember apiGroupMember = new GroupMemberConverter(groupMember).ToAPIGroupMember(); OneSpanSign.API.GroupMember apiResponse = apiClient.AddMember(groupId.Id, apiGroupMember); return(new GroupMemberConverter(apiResponse).ToSDKGroupMember()); }