示例#1
0
 public void send_emailNote(string authenticationToken, NoteEmailParameters parameters)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("emailNote", TMessageType.Call, seqid_));
   emailNote_args args = new emailNote_args();
   args.AuthenticationToken = authenticationToken;
   args.Parameters = parameters;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
示例#2
0
      public void emailNote(string authenticationToken, NoteEmailParameters parameters)
      {
        #if !SILVERLIGHT && !NETFX_CORE
        send_emailNote(authenticationToken, parameters);
        recv_emailNote();

        #else
        var asyncResult = Begin_emailNote(null, null, authenticationToken, parameters);
        End_emailNote(asyncResult);

        #endif
      }
示例#3
0
 public IAsyncResult send_emailNote(AsyncCallback callback, object state, string authenticationToken, NoteEmailParameters parameters)
示例#4
0
 public IAsyncResult Begin_emailNote(AsyncCallback callback, object state, string authenticationToken, NoteEmailParameters parameters)
 {
   return send_emailNote(callback, state, authenticationToken, parameters);
 }
示例#5
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           AuthenticationToken = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Parameters = new NoteEmailParameters();
           Parameters.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
			///** Attempts to send a single note to one or more email recipients.
			// @param  parameters The note must be specified either by GUID (in which case it will be sent using the existing data in the service), or else the full Note must be passed to this call. This also specifies the additional email fields that will be used in the email.
			// */
			public void EmailNote(NoteEmailParameters parameters)
			{
				Client.emailNote(AuthenticationToken(), parameters);
			}
 public void send_emailNote(string authenticationToken, NoteEmailParameters parameters)
 {
   oprot_.WriteMessageBegin(new TMessage("emailNote", TMessageType.Call, seqid_));
   emailNote_args args = new emailNote_args();
   args.AuthenticationToken = authenticationToken;
   args.Parameters = parameters;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   oprot_.Transport.Flush();
 }
 public void emailNote(string authenticationToken, NoteEmailParameters parameters)
 {
   send_emailNote(authenticationToken, parameters);
   recv_emailNote();
 }