Beispiel #1
0
 public void send_RegisterUser(string phoneNumber, string name, string deviceId)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("RegisterUser", TMessageType.Call, seqid_));
   RegisterUser_args args = new RegisterUser_args();
   args.PhoneNumber = phoneNumber;
   args.Name = name;
   args.DeviceId = deviceId;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
 public void send_RegisterUser(User user)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("RegisterUser", TMessageType.Call, seqid_));
   RegisterUser_args args = new RegisterUser_args();
   args.User = user;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }