public static void WriteToStream(FolderContainerMapping obj, Stream streamWriter) { BinaryWriter writer = new BinaryWriter(streamWriter); writer.Write(obj.FolderId); ContainerCount.WriteToStream(obj.ContainerInfo, streamWriter); }
public static FolderContainerMapping NewNextContainer(string mailboxAddress, FolderContainerMapping currentMapping) { currentMapping.ContainerInfo = ContainerCount.NewInstanceByPrevContainerName(currentMapping.ContainerInfo.ContainerName); return currentMapping; }
public static FolderContainerMapping ReadFromStream(Stream streamReader) { BinaryReader reader = new BinaryReader(streamReader); FolderContainerMapping result = new FolderContainerMapping(); result.FolderId = reader.ReadString(); result.ContainerInfo = ContainerCount.ReadFromStream(streamReader); return result; }
public static FolderContainerMapping NewInstance(string mailboxAddress, string folderId) { var result = new FolderContainerMapping(); result.FolderId = folderId; result.ContainerInfo = ContainerCount.NewInstance(folderId, 0); return result; }