コード例 #1
0
        /// <summary>
        /// Create a new EventType object.
        /// </summary>
        /// <param name="eventTypeID">Initial value of the EventTypeID property.</param>
        public static EventType CreateEventType(global::System.Byte eventTypeID)
        {
            EventType eventType = new EventType();

            eventType.EventTypeID = eventTypeID;
            return(eventType);
        }
コード例 #2
0
        /// <summary>
        /// Create a new Participant object.
        /// </summary>
        /// <param name="userID">Initial value of the UserID property.</param>
        public static Participant CreateParticipant(global::System.Byte userID)
        {
            Participant participant = new Participant();

            participant.UserID = userID;
            return(participant);
        }
コード例 #3
0
 ClientSerialize(global::System.UInt32 componentId,
                 void *userData,
                 global::System.Byte handleType,
                 global::Improbable.Worker.Internal.ComponentProtocol.ClientHandle *handle,
                 global::Improbable.Worker.Internal.Pbio.Object *root)
 {
     try
     {
         var _pool = global::Improbable.Worker.Internal.ClientHandles.Instance.GetGcHandlePool(*handle);
         if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Update)
         {
             var data        = (Update)global::Improbable.Worker.Internal.ClientHandles.Instance.Dereference(*handle);
             var stateObject = global::Improbable.Worker.Internal.Pbio.AddObject(
                 global::Improbable.Worker.Internal.Pbio.AddObject(root, /* entity_state */ 2), 50);
             if (data.readAcl.HasValue)
             {
                 {
                     global::Improbable.WorkerRequirementSet_Internal.Write(_pool, data.readAcl.Value, global::Improbable.Worker.Internal.Pbio.AddObject(stateObject, 1));
                 }
             }
             if (data.componentWriteAcl.HasValue)
             {
                 if (data.componentWriteAcl.Value.Count == 0)
                 {
                     global::Improbable.Worker.Internal.Pbio.AddUint32(root, /* fields to clear */ 1, 2);
                 }
                 if (data.componentWriteAcl.Value != null)
                 {
                     for (var _node = data.componentWriteAcl.Value.First; _node != null; _node = _node.Next)
                     {
                         var _pair = global::Improbable.Worker.Internal.Pbio.AddObject(stateObject, 2);
                         {
                             global::Improbable.Worker.Internal.Pbio.AddUint32(_pair, 1, _node.Value.Key);
                         }
                         {
                             global::Improbable.WorkerRequirementSet_Internal.Write(_pool, _node.Value.Value, global::Improbable.Worker.Internal.Pbio.AddObject(_pair, 2));
                         }
                     }
                 }
             }
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Snapshot)
         {
             var data = (Data)global::Improbable.Worker.Internal.ClientHandles.Instance.Dereference(*handle);
             global::Improbable.EntityAclData_Internal.Write(_pool, data.Value, global::Improbable.Worker.Internal.Pbio.AddObject(root, 50));
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Request)
         {
             global::Improbable.Worker.Internal.Pbio.AddObject(root, 50);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Response)
         {
             global::Improbable.Worker.Internal.Pbio.AddObject(root, 50);
         }
     }
     catch (global::System.Exception e)
     {
         global::Improbable.Worker.ClientError.LogClientException(e);
     }
 }
コード例 #4
0
        /// <summary>
        /// 创建新的 TableDataTypeTest 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        public static TableDataTypeTest CreateTableDataTypeTest(global::System.Byte id)
        {
            TableDataTypeTest tableDataTypeTest = new TableDataTypeTest();

            tableDataTypeTest.Id = id;
            return(tableDataTypeTest);
        }
コード例 #5
0
 ClientSerialize(global::System.UInt32 componentId,
                 void *userData,
                 global::System.Byte handleType,
                 global::Improbable.Worker.Internal.ComponentProtocol.ClientHandle *handle,
                 global::Improbable.Worker.Internal.Pbio.Object *root)
 {
     try
     {
         var _pool = global::Improbable.Worker.Internal.ClientHandles.Instance.GetGcHandlePool(*handle);
         if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Update)
         {
             global::Improbable.Worker.Internal.Pbio.AddObject(
                 global::Improbable.Worker.Internal.Pbio.AddObject(root, /* entity_state */ 2), 55);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Snapshot)
         {
             var data = (Data)global::Improbable.Worker.Internal.ClientHandles.Instance.Dereference(*handle);
             global::Improbable.PersistenceData_Internal.Write(_pool, data.Value, global::Improbable.Worker.Internal.Pbio.AddObject(root, 55));
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Request)
         {
             global::Improbable.Worker.Internal.Pbio.AddObject(root, 55);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Response)
         {
             global::Improbable.Worker.Internal.Pbio.AddObject(root, 55);
         }
     }
     catch (global::System.Exception e)
     {
         global::Improbable.Worker.ClientError.LogClientException(e);
     }
 }
コード例 #6
0
        /// <summary>
        /// Crear un nuevo objeto Type.
        /// </summary>
        /// <param name="typeId">Valor inicial de la propiedad typeId.</param>
        /// <param name="name">Valor inicial de la propiedad name.</param>
        public static Type CreateType(global::System.Byte typeId, global::System.String name)
        {
            Type type = new Type();

            type.typeId = typeId;
            type.name   = name;
            return(type);
        }
コード例 #7
0
        /// <summary>
        /// Create a new Attribute object.
        /// </summary>
        /// <param name="attrId">Initial value of the AttrId property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        public static Attribute CreateAttribute(global::System.Byte attrId, global::System.String name)
        {
            Attribute attribute = new Attribute();

            attribute.AttrId = attrId;
            attribute.Name   = name;
            return(attribute);
        }
コード例 #8
0
        /// <summary>
        /// Create a new MusicType object.
        /// </summary>
        /// <param name="typeId">Initial value of the typeId property.</param>
        /// <param name="description">Initial value of the description property.</param>
        public static MusicType CreateMusicType(global::System.Byte typeId, global::System.String description)
        {
            MusicType musicType = new MusicType();

            musicType.typeId      = typeId;
            musicType.description = description;
            return(musicType);
        }
コード例 #9
0
ファイル: CPModel.Designer.cs プロジェクト: simoncwu/CAccess
        /// <summary>
        /// Create a new TollingEvent object.
        /// </summary>
        /// <param name="eventId">Initial value of the EventId property.</param>
        /// <param name="code">Initial value of the Code property.</param>
        public static TollingEvent CreateTollingEvent(global::System.Byte eventId, global::System.String code)
        {
            TollingEvent tollingEvent = new TollingEvent();

            tollingEvent.EventId = eventId;
            tollingEvent.Code    = code;
            return(tollingEvent);
        }
コード例 #10
0
ファイル: CPModel.Designer.cs プロジェクト: simoncwu/CAccess
        /// <summary>
        /// Create a new TollingType object.
        /// </summary>
        /// <param name="typeId">Initial value of the TypeId property.</param>
        /// <param name="code">Initial value of the Code property.</param>
        public static TollingType CreateTollingType(global::System.Byte typeId, global::System.String code)
        {
            TollingType tollingType = new TollingType();

            tollingType.TypeId = typeId;
            tollingType.Code   = code;
            return(tollingType);
        }
コード例 #11
0
ファイル: CPModel.Designer.cs プロジェクト: simoncwu/CAccess
        /// <summary>
        /// Create a new TollingSource object.
        /// </summary>
        /// <param name="sourceId">Initial value of the SourceId property.</param>
        /// <param name="code">Initial value of the Code property.</param>
        public static TollingSource CreateTollingSource(global::System.Byte sourceId, global::System.String code)
        {
            TollingSource tollingSource = new TollingSource();

            tollingSource.SourceId = sourceId;
            tollingSource.Code     = code;
            return(tollingSource);
        }
コード例 #12
0
        /// <summary>
        /// Crear un nuevo objeto Bill.
        /// </summary>
        /// <param name="billId">Valor inicial de la propiedad billId.</param>
        /// <param name="value">Valor inicial de la propiedad value.</param>
        public static Bill CreateBill(global::System.Byte billId, global::System.String value)
        {
            Bill bill = new Bill();

            bill.billId = billId;
            bill.value  = value;
            return(bill);
        }
コード例 #13
0
        /// <summary>
        /// Create a new WindDirection object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="description">Initial value of the Description property.</param>
        /// <param name="angle">Initial value of the Angle property.</param>
        public static WindDirection CreateWindDirection(global::System.Byte id, global::System.String description, global::System.Double angle)
        {
            WindDirection windDirection = new WindDirection();

            windDirection.Id          = id;
            windDirection.Description = description;
            windDirection.Angle       = angle;
            return(windDirection);
        }
コード例 #14
0
        /// <summary>
        /// Create a new Files object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="file_name">Initial value of the File_name property.</param>
        /// <param name="file_content">Initial value of the File_content property.</param>
        public static Files CreateFiles(global::System.Byte id, global::System.String file_name, global::System.Byte[] file_content)
        {
            Files files = new Files();

            files.ID           = id;
            files.File_name    = file_name;
            files.File_content = file_content;
            return(files);
        }
コード例 #15
0
        /// <summary>
        /// Create a new SavedEventValue object.
        /// </summary>
        /// <param name="eventTypeID">Initial value of the EventTypeID property.</param>
        /// <param name="userID">Initial value of the UserID property.</param>
        /// <param name="eventTime">Initial value of the EventTime property.</param>
        public static SavedEventValue CreateSavedEventValue(global::System.Byte eventTypeID, global::System.Byte userID, global::System.DateTime eventTime)
        {
            SavedEventValue savedEventValue = new SavedEventValue();

            savedEventValue.EventTypeID = eventTypeID;
            savedEventValue.UserID      = userID;
            savedEventValue.EventTime   = eventTime;
            return(savedEventValue);
        }
コード例 #16
0
        /// <summary>
        /// Create a new SavedEvent object.
        /// </summary>
        /// <param name="eventTypeID">Initial value of the EventTypeID property.</param>
        /// <param name="userID">Initial value of the UserID property.</param>
        /// <param name="eventTime">Initial value of the EventTime property.</param>
        public static SavedEvent CreateSavedEvent(global::System.Byte eventTypeID, global::System.Byte userID, global::System.DateTime eventTime)
        {
            SavedEvent savedEvent = new SavedEvent();

            savedEvent.EventTypeID = eventTypeID;
            savedEvent.UserID      = userID;
            savedEvent.EventTime   = eventTime;
            return(savedEvent);
        }
コード例 #17
0
        /// <summary>
        /// Create a new SecuritySsoApplication object.
        /// </summary>
        /// <param name="applicationId">Initial value of the ApplicationId property.</param>
        /// <param name="applicationName">Initial value of the ApplicationName property.</param>
        /// <param name="userRights">Initial value of the UserRights property.</param>
        public static SecuritySsoApplication CreateSecuritySsoApplication(global::System.Byte applicationId, global::System.String applicationName, global::System.Int32 userRights)
        {
            SecuritySsoApplication securitySsoApplication = new SecuritySsoApplication();

            securitySsoApplication.ApplicationId   = applicationId;
            securitySsoApplication.ApplicationName = applicationName;
            securitySsoApplication.UserRights      = userRights;
            return(securitySsoApplication);
        }
コード例 #18
0
        /// <summary>
        /// Create a new SecurityGroup object.
        /// </summary>
        /// <param name="groupId">Initial value of the GroupId property.</param>
        /// <param name="groupName">Initial value of the GroupName property.</param>
        /// <param name="userRights">Initial value of the UserRights property.</param>
        public static SecurityGroup CreateSecurityGroup(global::System.Byte groupId, global::System.String groupName, global::System.Int32 userRights)
        {
            SecurityGroup securityGroup = new SecurityGroup();

            securityGroup.GroupId    = groupId;
            securityGroup.GroupName  = groupName;
            securityGroup.UserRights = userRights;
            return(securityGroup);
        }
コード例 #19
0
        /// <summary>
        /// Create a new GetUserDetails_Result object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="file_name">Initial value of the File_name property.</param>
        /// <param name="file_content">Initial value of the File_content property.</param>
        public static GetUserDetails_Result CreateGetUserDetails_Result(global::System.Byte id, global::System.String file_name, global::System.Byte[] file_content)
        {
            GetUserDetails_Result getUserDetails_Result = new GetUserDetails_Result();

            getUserDetails_Result.ID           = id;
            getUserDetails_Result.File_name    = file_name;
            getUserDetails_Result.File_content = file_content;
            return(getUserDetails_Result);
        }
コード例 #20
0
        /// <summary>
        /// Create a new tb_FileStorage object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="file_name">Initial value of the File_name property.</param>
        /// <param name="file_content">Initial value of the File_content property.</param>
        public static tb_FileStorage Createtb_FileStorage(global::System.Byte id, global::System.String file_name, global::System.Byte[] file_content)
        {
            tb_FileStorage tb_FileStorage = new tb_FileStorage();

            tb_FileStorage.ID           = id;
            tb_FileStorage.File_name    = file_name;
            tb_FileStorage.File_content = file_content;
            return(tb_FileStorage);
        }
コード例 #21
0
 ClientDeserialize(global::System.UInt32 componentId,
                   void *userData,
                   global::System.Byte handleType,
                   global::Improbable.Worker.Internal.Pbio.Object *root,
                   global::Improbable.Worker.Internal.ComponentProtocol.ClientHandle **handleOut)
 {
     *handleOut = null;
     try
     {
         *handleOut = global::Improbable.Worker.Internal.ClientHandles.HandleAlloc();
         if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Update)
         {
             var data               = new Update();
             var fieldsToClear      = new global::System.Collections.Generic.HashSet <uint>();
             var fieldsToClearCount = global::Improbable.Worker.Internal.Pbio.GetUint32Count(root, /* fields to clear */ 1);
             for (uint i = 0; i < fieldsToClearCount; ++i)
             {
                 fieldsToClear.Add(global::Improbable.Worker.Internal.Pbio.IndexUint32(root, /* fields to clear */ 1, i));
             }
             var stateObject = global::Improbable.Worker.Internal.Pbio.GetObject(
                 global::Improbable.Worker.Internal.Pbio.GetObject(root, /* entity_state */ 2), 103);
             if (global::Improbable.Worker.Internal.Pbio.GetBoolCount(stateObject, 1) > 0)
             {
                 bool field;
                 {
                     field = global::Improbable.Worker.Internal.Pbio.GetBool(stateObject, 1) != 0;
                 }
                 data.isAlive.Set(field);
             }
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Snapshot)
         {
             var data = new Data(global::Cell.IsAliveData_Internal.Read(
                                     global::Improbable.Worker.Internal.Pbio.GetObject(root, 103)));
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Request)
         {
             var data = new global::Improbable.Worker.Internal.GenericCommandObject();
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
             return(0);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Response)
         {
             var data = new global::Improbable.Worker.Internal.GenericCommandObject();
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
             return(0);
         }
     }
     catch (global::System.Exception e)
     {
         global::Improbable.Worker.ClientError.LogClientException(e);
         return(0);
     }
     return(1);
 }
コード例 #22
0
        /// <summary>
        /// Create a new ReadFile_Result object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="file_name">Initial value of the File_name property.</param>
        /// <param name="file_content">Initial value of the File_content property.</param>
        public static ReadFile_Result CreateReadFile_Result(global::System.Byte id, global::System.String file_name, global::System.Byte[] file_content)
        {
            ReadFile_Result readFile_Result = new ReadFile_Result();

            readFile_Result.ID           = id;
            readFile_Result.File_name    = file_name;
            readFile_Result.File_content = file_content;
            return(readFile_Result);
        }
コード例 #23
0
        /// <summary>
        /// Create a new ImageSize object.
        /// </summary>
        /// <param name="sizeId">Initial value of the SizeId property.</param>
        /// <param name="height">Initial value of the Height property.</param>
        /// <param name="width">Initial value of the Width property.</param>
        public static ImageSize CreateImageSize(global::System.Byte sizeId, global::System.Int16 height, global::System.Int16 width)
        {
            ImageSize imageSize = new ImageSize();

            imageSize.SizeId = sizeId;
            imageSize.Height = height;
            imageSize.Width  = width;
            return(imageSize);
        }
コード例 #24
0
ファイル: CPModel.Designer.cs プロジェクト: simoncwu/CAccess
        /// <summary>
        /// Create a new TollingLetter object.
        /// </summary>
        /// <param name="letterId">Initial value of the LetterId property.</param>
        /// <param name="sourceId">Initial value of the SourceId property.</param>
        /// <param name="eventId">Initial value of the EventId property.</param>
        /// <param name="typeId">Initial value of the TypeId property.</param>
        public static TollingLetter CreateTollingLetter(global::System.Byte letterId, global::System.Byte sourceId, global::System.Byte eventId, global::System.Byte typeId)
        {
            TollingLetter tollingLetter = new TollingLetter();

            tollingLetter.LetterId = letterId;
            tollingLetter.SourceId = sourceId;
            tollingLetter.EventId  = eventId;
            tollingLetter.TypeId   = typeId;
            return(tollingLetter);
        }
コード例 #25
0
 ClientDeserialize(global::System.UInt32 componentId,
                   void *userData,
                   global::System.Byte handleType,
                   global::Improbable.Worker.Internal.Pbio.Object *root,
                   global::Improbable.Worker.Internal.ComponentProtocol.ClientHandle **handleOut)
 {
     *handleOut = null;
     try
     {
         *handleOut = global::Improbable.Worker.Internal.ClientHandles.HandleAlloc();
         if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Update)
         {
             var data = new Update();
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Snapshot)
         {
             var data = new Data(global::Demo.PingResponderData_Internal.Read(
                                     global::Improbable.Worker.Internal.Pbio.GetObject(root, 101)));
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Request)
         {
             var data = new global::Improbable.Worker.Internal.GenericCommandObject();
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
             var commandObject = global::Improbable.Worker.Internal.Pbio.GetObject(root, 101);
             if (global::Improbable.Worker.Internal.Pbio.GetObjectCount(commandObject, 1) != 0)
             {
                 data.CommandId     = 1;
                 data.CommandObject = new Commands.Ping.Request(global::Demo.PingRequest_Internal.Read(global::Improbable.Worker.Internal.Pbio.GetObject(commandObject, 1)));
                 return(1);
             }
             return(0);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Response)
         {
             var data = new global::Improbable.Worker.Internal.GenericCommandObject();
             **handleOut = global::Improbable.Worker.Internal.ClientHandles.Instance.CreateHandle(data);
             var commandObject = global::Improbable.Worker.Internal.Pbio.GetObject(root, 101);
             if (global::Improbable.Worker.Internal.Pbio.GetObjectCount(commandObject, 2) != 0)
             {
                 data.CommandId     = 1;
                 data.CommandObject = new Commands.Ping.Response(global::Demo.Pong_Internal.Read(global::Improbable.Worker.Internal.Pbio.GetObject(commandObject, 2)));
                 return(1);
             }
             return(0);
         }
     }
     catch (global::System.Exception e)
     {
         global::Improbable.Worker.ClientError.LogClientException(e);
         return(0);
     }
     return(1);
 }
コード例 #26
0
        /// <summary>
        /// Create a new AuditRecord object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="action">Initial value of the Action property.</param>
        /// <param name="auditDate">Initial value of the AuditDate property.</param>
        /// <param name="parentKey">Initial value of the ParentKey property.</param>
        /// <param name="tableKey">Initial value of the TableKey property.</param>
        public static AuditRecord CreateAuditRecord(global::System.Int32 id, global::System.Byte action, global::System.DateTime auditDate, global::System.Int32 parentKey, global::System.Int32 tableKey)
        {
            AuditRecord auditRecord = new AuditRecord();

            auditRecord.Id        = id;
            auditRecord.Action    = action;
            auditRecord.AuditDate = auditDate;
            auditRecord.ParentKey = parentKey;
            auditRecord.TableKey  = tableKey;
            return(auditRecord);
        }
コード例 #27
0
        /// <summary>
        /// Create a new Token object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="storeTypeId">Initial value of the StoreTypeId property.</param>
        /// <param name="userId">Initial value of the UserId property.</param>
        /// <param name="tokenContent">Initial value of the TokenContent property.</param>
        /// <param name="type">Initial value of the Type property.</param>
        public static Token CreateToken(global::System.Guid id, global::System.Byte storeTypeId, global::System.String userId, global::System.String tokenContent, global::System.Int32 type)
        {
            Token token = new Token();

            token.Id           = id;
            token.StoreTypeId  = storeTypeId;
            token.UserId       = userId;
            token.TokenContent = tokenContent;
            token.Type         = type;
            return(token);
        }
コード例 #28
0
        /// <summary>
        /// Create a new Month object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="numDaysByte">Initial value of the NumDaysByte property.</param>
        /// <param name="numDaysShort">Initial value of the NumDaysShort property.</param>
        /// <param name="numDaysInt">Initial value of the NumDaysInt property.</param>
        /// <param name="numDaysLong">Initial value of the NumDaysLong property.</param>
        /// <param name="numDaysSingle">Initial value of the NumDaysSingle property.</param>
        public static Month CreateMonth(global::System.Int32 id, global::System.Byte numDaysByte, global::System.Int16 numDaysShort, global::System.Int32 numDaysInt, global::System.Int64 numDaysLong, global::System.Single numDaysSingle)
        {
            Month month = new Month();

            month.Id            = id;
            month.NumDaysByte   = numDaysByte;
            month.NumDaysShort  = numDaysShort;
            month.NumDaysInt    = numDaysInt;
            month.NumDaysLong   = numDaysLong;
            month.NumDaysSingle = numDaysSingle;
            return(month);
        }
コード例 #29
0
 ClientSerialize(global::System.UInt32 componentId,
                 void *userData,
                 global::System.Byte handleType,
                 global::Improbable.Worker.Internal.ComponentProtocol.ClientHandle *handle,
                 global::Improbable.Worker.Internal.Pbio.Object *root)
 {
     try
     {
         var _pool = global::Improbable.Worker.Internal.ClientHandles.Instance.GetGcHandlePool(*handle);
         if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Update)
         {
             global::Improbable.Worker.Internal.Pbio.AddObject(
                 global::Improbable.Worker.Internal.Pbio.AddObject(root, /* entity_state */ 2), 101);
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Snapshot)
         {
             var data = (Data)global::Improbable.Worker.Internal.ClientHandles.Instance.Dereference(*handle);
             global::Demo.PingResponderData_Internal.Write(_pool, data.Value, global::Improbable.Worker.Internal.Pbio.AddObject(root, 101));
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Request)
         {
             var data = (global::Improbable.Worker.Internal.GenericCommandObject)
                        global::Improbable.Worker.Internal.ClientHandles.Instance.Dereference(*handle);
             var commandObject = global::Improbable.Worker.Internal.Pbio.AddObject(root, 101);
             if (data.CommandId == 1)
             {
                 var requestObject = (Commands.Ping.Request)data.CommandObject;
                 {
                     global::Demo.PingRequest_Internal.Write(_pool, requestObject.Value, global::Improbable.Worker.Internal.Pbio.AddObject(commandObject, 1));
                 }
             }
         }
         else if (handleType == (byte)global::Improbable.Worker.Internal.ComponentProtocol.ClientHandleType.Response)
         {
             var data = (global::Improbable.Worker.Internal.GenericCommandObject)
                        global::Improbable.Worker.Internal.ClientHandles.Instance.Dereference(*handle);
             var commandObject = global::Improbable.Worker.Internal.Pbio.AddObject(root, 101);
             if (data.CommandId == 1)
             {
                 var responseObject = (Commands.Ping.Response)data.CommandObject;
                 {
                     global::Demo.Pong_Internal.Write(_pool, responseObject.Value, global::Improbable.Worker.Internal.Pbio.AddObject(commandObject, 2));
                 }
             }
         }
     }
     catch (global::System.Exception e)
     {
         global::Improbable.Worker.ClientError.LogClientException(e);
     }
 }
コード例 #30
0
        public SCustomer Createcustomer(global::System.Int32 customer_id, global::System.Byte store_id, global::System.String first_name, global::System.String last_name, global::System.Int32 address_id, global::System.Boolean active, global::System.DateTime create_date, global::System.DateTime last_update, string email)
        {
            SCustomer customer = new SCustomer();

            customer.customer_id = customer_id;
            customer.store_id    = store_id;
            customer.first_name  = first_name;
            customer.last_name   = last_name;
            customer.address_id  = address_id;
            customer.active      = active;
            customer.create_date = create_date;
            customer.last_update = last_update;
            customer.email       = email;
            return(customer);
        }