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); }
public int GetSubObjectCountByNidType(IPropertyObject parent, NidType nidType) { return(2); }
public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType) { return(OnGetSubObjectsByNidType()); }
public IEnumerable <NodeID> GetNodeIDsByNodeTypeId(NidType nidType) { var nodeIdList = new List <NodeID>(); return(nodeIdList); }
internal static Nid ChangeType(Nid nid, NidType type) => new Nid(type, nid.Index);
public IEnumerable <NodeID> GetNodeIDsByNodeTypeId(NidType nidType) { return(OnGetNodeIDsByNodeTypeId()); }
public IEnumerable <IPropertyObject> GetSubObjectsByNidType(IPropertyObject parent, NidType nidType) { var propertyObjectList = new List <IPropertyObject>(); return(propertyObjectList); }
private Nid(NidType type, uint index) { _value = (uint)type | index << 5; }
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); }
/// <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)); }
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); }
internal static Nid ChangeType(Nid nid, NidType type) { return new Nid(type, nid.Index); }