Exemple #1
0
        public IAsyncResult send_getSnsMyProfile(AsyncCallback callback, object state, SnsIdType snsIdType, string snsAccessToken)
        {
            oprot_.WriteMessageBegin(new TMessage("getSnsMyProfile", TMessageType.Call, seqid_));
            getSnsMyProfile_args args = new getSnsMyProfile_args();

            args.SnsIdType      = snsIdType;
            args.SnsAccessToken = snsAccessToken;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            return(oprot_.Transport.BeginFlush(callback, state));
        }
Exemple #2
0
        public void send_getSnsMyProfile(SnsIdType snsIdType, string snsAccessToken)
        {
            oprot_.WriteMessageBegin(new TMessage("getSnsMyProfile", TMessageType.Call, seqid_));
            getSnsMyProfile_args args = new getSnsMyProfile_args();

            args.SnsIdType      = snsIdType;
            args.SnsAccessToken = snsAccessToken;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            oprot_.Transport.Flush();
        }
Exemple #3
0
        public void send_getSnsMyProfile(SnsIdType snsIdType, string snsAccessToken)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("getSnsMyProfile", TMessageType.Call, seqid_));
            getSnsMyProfile_args args = new getSnsMyProfile_args();

            args.SnsIdType      = snsIdType;
            args.SnsAccessToken = snsAccessToken;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Exemple #4
0
        public void getSnsMyProfile_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getSnsMyProfile_args args = new getSnsMyProfile_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            getSnsMyProfile_result result = new getSnsMyProfile_result();

            try
            {
                try
                {
                    result.Success = iface_.getSnsMyProfile(args.SnsIdType, args.SnsAccessToken);
                }
                catch (TalkException e)
                {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("getSnsMyProfile", TMessageType.Reply, seqid));
                result.Write(oprot);
            }
            catch (TTransportException)
            {
                throw;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine("Error occurred in processor:");
                Console.Error.WriteLine(ex.ToString());
                TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                oprot.WriteMessageBegin(new TMessage("getSnsMyProfile", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }