public void setSharedNotebookRecipientSettings_Process(int seqid, TProtocol iprot, TProtocol oprot) { setSharedNotebookRecipientSettings_args args = new setSharedNotebookRecipientSettings_args(); args.Read(iprot); iprot.ReadMessageEnd(); setSharedNotebookRecipientSettings_result result = new setSharedNotebookRecipientSettings_result(); try { result.Success = iface_.setSharedNotebookRecipientSettings(args.AuthenticationToken, args.SharedNotebookId, args.RecipientSettings); } catch (Evernote.EDAM.Error.EDAMUserException userException) { result.UserException = userException; } catch (Evernote.EDAM.Error.EDAMNotFoundException notFoundException) { result.NotFoundException = notFoundException; } catch (Evernote.EDAM.Error.EDAMSystemException systemException) { result.SystemException = systemException; } oprot.WriteMessageBegin(new TMessage("setSharedNotebookRecipientSettings", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_setSharedNotebookRecipientSettings(string authenticationToken, long sharedNotebookId, Evernote.EDAM.Type.SharedNotebookRecipientSettings recipientSettings) #endif { oprot_.WriteMessageBegin(new TMessage("setSharedNotebookRecipientSettings", TMessageType.Call, seqid_)); setSharedNotebookRecipientSettings_args args = new setSharedNotebookRecipientSettings_args(); args.AuthenticationToken = authenticationToken; args.SharedNotebookId = sharedNotebookId; args.RecipientSettings = recipientSettings; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT || NETFX_CORE return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }