コード例 #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;
 }