Ejemplo n.º 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
 }
Ejemplo n.º 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
      }
Ejemplo n.º 3
0
 public IAsyncResult send_emailNote(AsyncCallback callback, object state, string authenticationToken, NoteEmailParameters parameters)
Ejemplo n.º 4
0
 public IAsyncResult Begin_emailNote(AsyncCallback callback, object state, string authenticationToken, NoteEmailParameters parameters)
 {
   return send_emailNote(callback, state, authenticationToken, parameters);
 }
Ejemplo n.º 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);
			}
Ejemplo n.º 7
0
 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();
 }
Ejemplo n.º 8
0
 public void emailNote(string authenticationToken, NoteEmailParameters parameters)
 {
   send_emailNote(authenticationToken, parameters);
   recv_emailNote();
 }