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; }
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)); }
public ObjectPayload() { this.SharedProperties = new SharedPropertyDictionary(); }