コード例 #1
0
ファイル: Payload.cs プロジェクト: modulexcite/IL2JS
 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;
 }
コード例 #2
0
ファイル: Payload.cs プロジェクト: modulexcite/IL2JS
        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));
        }
コード例 #3
0
ファイル: Payload.cs プロジェクト: modulexcite/IL2JS
 public ObjectPayload()
 {
     this.SharedProperties = new SharedPropertyDictionary();
 }