Пример #1
0
 public IAsyncResult BeginUpdateProfile(UpdateProfileRequest UpdateProfileRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("UpdateProfile", new object[1]
       {
     (object) UpdateProfileRequest
       }, callback, asyncState);
 }
Пример #2
0
 public profileItem UpdateProfile(sessionType session, profileItem profile)
 {
     UpdateProfileRequest UpdateProfileRequest = new UpdateProfileRequest();
       DateTime utcNow = DateTime.UtcNow;
       UpdateProfileRequest.nonce = Signature.GetNonce();
       UpdateProfileRequest.connectId = session.connectId;
       UpdateProfileRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "updateprofile", UpdateProfileRequest.nonce);
       UpdateProfileRequest.timestamp = Signature.GetZDateTime(utcNow);
       UpdateProfileRequest.profileItem = new profileItem()
       {
     id = profile.id,
     idSpecified = true,
     firstName = profile.firstName,
     lastName = profile.lastName,
     company = profile.company,
     country = profile.country,
     city = profile.city,
     zipcode = profile.zipcode,
     street1 = profile.street1,
     street2 = profile.street2,
     fax = profile.fax,
     phone = profile.phone,
     mobile = profile.mobile
       };
       UpdateProfileResponse updateProfileResponse = this.publisherService.UpdateProfile(UpdateProfileRequest);
       if (updateProfileResponse == null)
     return (profileItem) null;
       else
     return updateProfileResponse.profileItem;
 }