Example #1
0
            public void ShowInGameOverlay_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                ShowInGameOverlay_args args = new ShowInGameOverlay_args();

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

                try
                {
                    iface_.ShowInGameOverlay(args.Arguments);
                    oprot.WriteMessageBegin(new TMessage("ShowInGameOverlay", 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("ShowInGameOverlay", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Example #2
0
            public void send_ShowInGameOverlay(Ruyi.SDK.Overlay.OverlayState arguments)
            {
                oprot_.WriteMessageBegin(new TMessage("ShowInGameOverlay", TMessageType.Call, seqid_));
                ShowInGameOverlay_args args = new ShowInGameOverlay_args();

                args.Arguments = arguments;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Example #3
0
            public IAsyncResult send_ShowInGameOverlay(AsyncCallback callback, object state, Ruyi.SDK.Overlay.OverlayState arguments)
            {
                oprot_.WriteMessageBegin(new TMessage("ShowInGameOverlay", TMessageType.Call, seqid_));
                ShowInGameOverlay_args args = new ShowInGameOverlay_args();

                args.Arguments = arguments;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                return(oprot_.Transport.BeginFlush(callback, state));
            }