예제 #1
0
 /// <summary>
 /// Accept the contact request
 /// </summary>
 public async void AcceptContactRequest()
 {
     var acceptContactRequest = new ReplyContactRequestListenerAsync();
     await acceptContactRequest.ExecuteAsync(() =>
                                             SdkService.MegaSdk.replyContactRequest(this.MegaContactRequest,
                                                                                    MContactRequestReplyActionType.REPLY_ACTION_ACCEPT, acceptContactRequest));
 }
예제 #2
0
 /// <summary>
 /// Decline the contact request
 /// </summary>
 public async void DeclineContactRequest()
 {
     var declineContactRequest = new ReplyContactRequestListenerAsync();
     await declineContactRequest.ExecuteAsync(() =>
                                              SdkService.MegaSdk.replyContactRequest(this.MegaContactRequest,
                                                                                     MContactRequestReplyActionType.REPLY_ACTION_DENY, declineContactRequest));
 }