Пример #1
0
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            var propertyObjectList = new List <IPropertyObject>();

            if (nidType == NidType.nid_type_hierarchy_table)
            {
                propertyObjectList.Add(new Folder(this, new MockPropBag()));
                propertyObjectList.Add(new Folder(this, new DifferentMockPropBag()));
            }
            else if (nidType == NidType.nid_type_contents_table)
            {
                propertyObjectList.Add(new Message(this, new DifferentMockPropBag()));
                propertyObjectList.Add(new Message(this, new DifferentMockPropBag()));
            }

            return(propertyObjectList);
        }
Пример #2
0
 public int GetSubObjectCountByNidType(IPropertyObject parent, NidType nidType)
 {
     return(2);
 }
Пример #3
0
 public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
 {
     return(OnGetSubObjectsByNidType());
 }
Пример #4
0
        public IEnumerable <NodeID> GetNodeIDsByNodeTypeId(NidType nidType)
        {
            var nodeIdList = new List <NodeID>();

            return(nodeIdList);
        }
Пример #5
0
 internal static Nid ChangeType(Nid nid, NidType type) => new Nid(type, nid.Index);
Пример #6
0
 public IEnumerable <NodeID> GetNodeIDsByNodeTypeId(NidType nidType)
 {
     return(OnGetNodeIDsByNodeTypeId());
 }
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            var propertyObjectList = new List <IPropertyObject>();

            return(propertyObjectList);
        }
Пример #8
0
 private Nid(NidType type, uint index)
 {
     _value = (uint)type | index << 5;
 }
Пример #9
0
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            List <IPropertyObject> propertyObjectList = new List <IPropertyObject>();

            if (nidType == NidType.nid_type_hierarchy_table)
            {
                propertyObjectList.Add(new Folder(this, 1111));
                propertyObjectList.Add(new Folder(this, 2222));
            }

            return(propertyObjectList);
        }
Пример #10
0
 /// <summary>
 /// Construct a node_id (NID) from a node type and index
 /// [MS-PST] 2.2.2.1
 /// </summary>
 public static NodeID make_nid(NidType nid_type, NodeID nid_index)
 {
     return(((UInt32)nid_type & nid_type_mask) | ((nid_index) << 5));
 }
Пример #11
0
        public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType)
        {
            var propertyObjectList = new List <IPropertyObject>
            {
                new Message(new MessageMockDBContext(), new MessageMockPropBag()),
                new Message(new MessageMockDBContext(), new MessageMockPropBag())
            };

            return(propertyObjectList);
        }
Пример #12
0
 internal static Nid ChangeType(Nid nid, NidType type)
 {
     return new Nid(type, nid.Index);
 }
Пример #13
0
 private Nid(NidType type, uint index)
 {
     _value = (uint)type | index << 5;
 }