/// <summary> /// Two DnsResourceDataNetworkServiceAccessPoint are iff their area address, system identifier and selector fields are equal. /// </summary> public bool Equals(DnsResourceDataNetworkServiceAccessPoint other) { return(other != null && AreaAddress.Equals(other.AreaAddress) && SystemIdentifier.Equals(other.SystemIdentifier) && Selector.Equals(other.Selector)); }
internal override void WriteDataSimple(byte[] buffer, int offset) { AreaAddress.Write(buffer, offset + Offset.AreaAddress); int afterAreaOffset = offset + AreaAddress.Length; buffer.Write(afterAreaOffset + OffsetAfterArea.SystemIdentifier, SystemIdentifier, Endianity.Big); buffer.Write(afterAreaOffset + OffsetAfterArea.Selector, Selector); }
public Area GetArea(AreaAddress areaAddress) { if (this.StoredAreas.ContainsKey(areaAddress.AreaName)) { return(this.StoredAreas[areaAddress.AreaName]); } else { return(null); } }
public void RemoveArea(AreaAddress areaAddress) { throw new NotImplementedException(); }
public ModelResult <Area> EditArea(AreaAddress areaAddress, ImportAreaInput areaInput) { throw new NotImplementedException(); }
public IPageOfItems <Post> GetPostsWithDrafts(int pageIndex, int pageSize, AreaAddress areaAddress) { throw new NotImplementedException(); }
public IEnumerable <KeyValuePair <ArchiveData, int> > GetArchives(AreaAddress areaAddress) { throw new NotImplementedException(); }
public IPageOfItems <Post> GetPosts(int pageIndex, int pageSize, AreaAddress areaAddress, DateTime?sinceDate) { return(new PageOfItems <Post>(AddedPosts.Where(p => p.Area.Name == areaAddress.AreaName), pageIndex, pageSize, AddedPosts.Count)); }