Ejemplo n.º 1
0
 public IAsyncResult send_registerWithSnsIdAndIdentityCredential(AsyncCallback callback, object state, SnsIdType snsIdType, string snsAccessToken, IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)
Ejemplo n.º 2
0
 public void send_registerWithSnsIdAndIdentityCredential(SnsIdType snsIdType, string snsAccessToken, IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("registerWithSnsIdAndIdentityCredential", TMessageType.Call, seqid_));
   registerWithSnsIdAndIdentityCredential_args args = new registerWithSnsIdAndIdentityCredential_args();
   args.SnsIdType = snsIdType;
   args.SnsAccessToken = snsAccessToken;
   args.IdentityCredential = identityCredential;
   args.Region = region;
   args.UdidHash = udidHash;
   args.DeviceInfo = deviceInfo;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Ejemplo n.º 3
0
 public IAsyncResult send_registerWithExistingSnsIdAndIdentityCredential(AsyncCallback callback, object state, IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)
Ejemplo n.º 4
0
      public string registerWithSnsIdAndIdentityCredential(SnsIdType snsIdType, string snsAccessToken, IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)
      {
        #if !SILVERLIGHT
        send_registerWithSnsIdAndIdentityCredential(snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo);
        return recv_registerWithSnsIdAndIdentityCredential();

        #else
        var asyncResult = Begin_registerWithSnsIdAndIdentityCredential(null, null, snsIdType, snsAccessToken, identityCredential, region, udidHash, deviceInfo);
        return End_registerWithSnsIdAndIdentityCredential(asyncResult);

        #endif
      }
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 2:
         if (field.Type == TType.Struct) {
           IdentityCredential = new IdentityCredential();
           IdentityCredential.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Ejemplo n.º 6
0
      public string registerWithExistingSnsIdAndIdentityCredential(IdentityCredential identityCredential, string region, string udidHash, DeviceInfo deviceInfo)
      {
        #if !SILVERLIGHT
        send_registerWithExistingSnsIdAndIdentityCredential(identityCredential, region, udidHash, deviceInfo);
        return recv_registerWithExistingSnsIdAndIdentityCredential();

        #else
        var asyncResult = Begin_registerWithExistingSnsIdAndIdentityCredential(null, null, identityCredential, region, udidHash, deviceInfo);
        return End_registerWithExistingSnsIdAndIdentityCredential(asyncResult);

        #endif
      }
Ejemplo n.º 7
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.I32) {
           SnsIdType = (SnsIdType)iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.String) {
           SnsAccessToken = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.Struct) {
           IdentityCredential = new IdentityCredential();
           IdentityCredential.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.String) {
           Region = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.String) {
           UdidHash = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.Struct) {
           DeviceInfo = new DeviceInfo();
           DeviceInfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Ejemplo n.º 8
0
 public void send_verifyIdentityCredentialWithResult(IdentityCredential identityCredential)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("verifyIdentityCredentialWithResult", TMessageType.Call, seqid_));
   verifyIdentityCredentialWithResult_args args = new verifyIdentityCredentialWithResult_args();
   args.IdentityCredential = identityCredential;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Ejemplo n.º 9
0
 public IAsyncResult send_verifyIdentityCredentialWithResult(AsyncCallback callback, object state, IdentityCredential identityCredential)
Ejemplo n.º 10
0
      public UserAuthStatus verifyIdentityCredentialWithResult(IdentityCredential identityCredential)
      {
        #if !SILVERLIGHT
        send_verifyIdentityCredentialWithResult(identityCredential);
        return recv_verifyIdentityCredentialWithResult();

        #else
        var asyncResult = Begin_verifyIdentityCredentialWithResult(null, null, identityCredential);
        return End_verifyIdentityCredentialWithResult(asyncResult);

        #endif
      }
Ejemplo n.º 11
0
 public IAsyncResult Begin_verifyIdentityCredentialWithResult(AsyncCallback callback, object state, IdentityCredential identityCredential)
 {
   return send_verifyIdentityCredentialWithResult(callback, state, identityCredential);
 }