示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
 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();
 }
示例#4
0
 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());
 }
示例#5
0
 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());
 }