Ejemplo n.º 1
0
 public ObjectPayload(Guid clientId, string type, Guid objectId, string objectName, IDictionary<short, SharedProperty> sharedProperties,
     SharedAttributes attributes, bool isDynamic)
     : base(objectName, objectId, clientId)
 {
     this.Type = type;
     this.Attributes = attributes;
     this.SharedProperties = new SharedPropertyDictionary(sharedProperties);
     this.IsDynamic = isDynamic;
 }
Ejemplo n.º 2
0
        public ObjectPayload(Guid clientId, INotifyPropertyChanged sharedObject, Guid objectId, string objectName)
            : base(objectName, objectId, clientId)
        {
            Type sharedObjectType = sharedObject.GetType();
#if IL2JS
            this.Type = sharedObject.GetType().Name;            
#else
            this.Type = sharedObjectType.AssemblyQualifiedName;
#endif
            this.Attributes = new SharedAttributes(sharedObjectType);
            this.SharedProperties = new SharedPropertyDictionary(sharedObject.GetSharedProperties(clientId));
        }
Ejemplo n.º 3
0
 public ObjectPayload()
 {
     this.SharedProperties = new SharedPropertyDictionary();
 }