예제 #1
0
        public static void WriteToStream(FolderContainerMapping obj, Stream streamWriter)
        {
            BinaryWriter writer = new BinaryWriter(streamWriter);

            writer.Write(obj.FolderId);
            ContainerCount.WriteToStream(obj.ContainerInfo, streamWriter);
        }
예제 #2
0
 public static FolderContainerMapping NewNextContainer(string mailboxAddress, FolderContainerMapping currentMapping)
 {
     currentMapping.ContainerInfo = ContainerCount.NewInstanceByPrevContainerName(currentMapping.ContainerInfo.ContainerName);
     return currentMapping;
 }
예제 #3
0
        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;
        }
예제 #4
0
 public static FolderContainerMapping NewInstance(string mailboxAddress, string folderId)
 {
     var result = new FolderContainerMapping();
     result.FolderId = folderId;
     result.ContainerInfo = ContainerCount.NewInstance(folderId, 0);
     return result;
 }