示例#1
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 2:
         if (field.Type == TType.String) {
           Mid = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I32) {
           Index = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.Struct) {
           Location = new Geolocation();
           Location.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
示例#2
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 0:
         if (field.Type == TType.Struct) {
           Success = new Geolocation();
           Success.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           E = new TalkException();
           E.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
示例#3
0
 public void send_setBuddyLocation(string mid, int index, Geolocation location)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("setBuddyLocation", TMessageType.Call, seqid_));
   setBuddyLocation_args args = new setBuddyLocation_args();
   args.Mid = mid;
   args.Index = index;
   args.Location = location;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
示例#4
0
 public IAsyncResult send_setBuddyLocation(AsyncCallback callback, object state, string mid, int index, Geolocation location)
示例#5
0
      public void setBuddyLocation(string mid, int index, Geolocation location)
      {
        #if !SILVERLIGHT
        send_setBuddyLocation(mid, index, location);
        recv_setBuddyLocation();

        #else
        var asyncResult = Begin_setBuddyLocation(null, null, mid, index, location);
        End_setBuddyLocation(asyncResult);

        #endif
      }
示例#6
0
 public IAsyncResult Begin_setBuddyLocation(AsyncCallback callback, object state, string mid, int index, Geolocation location)
 {
   return send_setBuddyLocation(callback, state, mid, index, location);
 }