using Microsoft.Exchange.WebServices.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public enum MailSearchType
{
All = 1,//按所有条件搜索
From = 2, /// 按发件人搜索
To = 3,// 按收件人搜索
Subject// 按主题搜索
}
public class MailInfo
{
public string ID { get; set; }
public string WebClientEditFormQueryString { get; set; }
public string WebClientReadFormQueryString { get; set; }
public string Subject { get; set; }
public string Descript { get; set; }
public string To { get; set; }
public string Cc { get; set; }
public string BCc { get; set; }
public string From { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public bool IsRead { get; set; }
public Importance Importance { get; set; }
public List<string> AttachmentId { get; set; }
public List<string> AttachmentName { get; set; }
public List<byte[]> AttachmentByte { get; set; }
public List<string> AttachmentType { get; set; }
public List<int> AttachmentSize { get; set; }
public List<bool> AttachmentIsInLine { get; set; }
public List<string> AttachmentContentID { get; set; }
public bool IsDraft { get; set; }
public string BodyText { get; set; }
public DateTime? CreatedDateTime { get; set; }
public DateTime? ReceivedDateTime { get; set; }
public List<string> AttachmentUrl { get; set; }
public bool HasAttachment { get; set; }
public int TotalCount { get; set; }
public BodyType BodyType { get; set; }
public string DisplayTo { get; set; }
public int ReadDataOffset { get; set; }// 由于排除了不是邮件的数据,需要记录数据读取的位置
public List<string> ItemTypeList { get; set; }/// 附件类型,可能是FileAttachment/ItemAttachment
public List<MailInfo> SubEmailList { get; set; }// 获取ItemAttachment里的Item(邮件)
public bool IsAttachment { get; set; }当前邮件是不是Attachment
}
/// <summary>
/// nicerwang 目录信息
/// </summary>
public class FoldInfo
{
public string ID { get; set; }
public string Name { get; set; }
public int NoRead { get; set; }
public string ParentID { get; set; }
public int ChildNum { get; set; }
public List<FoldInfo> ChildFolds { get; set; }
}
/// <summary>
/// 联系人信息
/// </summary>
public class contactInfo
{
public string ID { get; set; }
public string CompanyName { get; set; }
public string Department { get; set; }
public string DisplayName { get; set; }
public string EmailAddress { get; set; }
public string GivenName { get; set; }
public string JobTitle { get; set; }// 职务
public string FileAs { get; set; }// 表示为
public string Surname { get; set; }// 姓
public string OfficePhNumbers { get; set; }// 商务电话
public string MobilePhNumbers { get; set; } // 移动电话
}
/// <summary>
/// 约会信息
/// </summary>
public class AppointmentInfo
{
public string ID { get; set; }
public string Subject { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public string Descript { get; set; }
public string Location { get; set; }
public string isAllDayEvent { get; set; }
public string IsReminderSet { get; set; }// 是否提醒1提醒,0不提醒
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
public int ReminderMinutesBeforeStart { get; set; }
//public string AppointmentType { get; set; }// 约会类型比如重复事件
}
/// <summary>
/// 外出自动回复
/// </summary>
public class ExternalAutoReply
{
public string InternalReplyContent// 内部的回复内容
/// <summary>
public string ExternalReplyContent// 外部的回复内容
public DateTime StartTime// 回复开始时间
public DateTime EndTime// 回复结束时间
public string State
// inOrg只答覆我的聯繫人 / outOrg答覆我組織外的任何人 / none不開啟 自動答覆我組織外的人
public string OnlyReplyMyContactOrReplyOutOrgPersonal
public string OnlyTime// 是否開啟在時間段範圍內自動回覆 1開啟 0關閉
public string AutoReplyOutOrgPersonal// 自動答覆我組織外的人 1開啟 0關閉
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public enum MailSearchType
{
All = 1,//按所有条件搜索
From = 2, /// 按发件人搜索
To = 3,// 按收件人搜索
Subject// 按主题搜索
}
public class MailInfo
{
public string ID { get; set; }
public string WebClientEditFormQueryString { get; set; }
public string WebClientReadFormQueryString { get; set; }
public string Subject { get; set; }
public string Descript { get; set; }
public string To { get; set; }
public string Cc { get; set; }
public string BCc { get; set; }
public string From { get; set; }
public DateTime? StartTime { get; set; }
public DateTime? EndTime { get; set; }
public bool IsRead { get; set; }
public Importance Importance { get; set; }
public List<string> AttachmentId { get; set; }
public List<string> AttachmentName { get; set; }
public List<byte[]> AttachmentByte { get; set; }
public List<string> AttachmentType { get; set; }
public List<int> AttachmentSize { get; set; }
public List<bool> AttachmentIsInLine { get; set; }
public List<string> AttachmentContentID { get; set; }
public bool IsDraft { get; set; }
public string BodyText { get; set; }
public DateTime? CreatedDateTime { get; set; }
public DateTime? ReceivedDateTime { get; set; }
public List<string> AttachmentUrl { get; set; }
public bool HasAttachment { get; set; }
public int TotalCount { get; set; }
public BodyType BodyType { get; set; }
public string DisplayTo { get; set; }
public int ReadDataOffset { get; set; }// 由于排除了不是邮件的数据,需要记录数据读取的位置
public List<string> ItemTypeList { get; set; }/// 附件类型,可能是FileAttachment/ItemAttachment
public List<MailInfo> SubEmailList { get; set; }// 获取ItemAttachment里的Item(邮件)
public bool IsAttachment { get; set; }当前邮件是不是Attachment
}
/// <summary>
/// nicerwang 目录信息
/// </summary>
public class FoldInfo
{
public string ID { get; set; }
public string Name { get; set; }
public int NoRead { get; set; }
public string ParentID { get; set; }
public int ChildNum { get; set; }
public List<FoldInfo> ChildFolds { get; set; }
}
/// <summary>
/// 联系人信息
/// </summary>
public class contactInfo
{
public string ID { get; set; }
public string CompanyName { get; set; }
public string Department { get; set; }
public string DisplayName { get; set; }
public string EmailAddress { get; set; }
public string GivenName { get; set; }
public string JobTitle { get; set; }// 职务
public string FileAs { get; set; }// 表示为
public string Surname { get; set; }// 姓
public string OfficePhNumbers { get; set; }// 商务电话
public string MobilePhNumbers { get; set; } // 移动电话
}
/// <summary>
/// 约会信息
/// </summary>
public class AppointmentInfo
{
public string ID { get; set; }
public string Subject { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public string Descript { get; set; }
public string Location { get; set; }
public string isAllDayEvent { get; set; }
public string IsReminderSet { get; set; }// 是否提醒1提醒,0不提醒
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
public int ReminderMinutesBeforeStart { get; set; }
//public string AppointmentType { get; set; }// 约会类型比如重复事件
}
/// <summary>
/// 外出自动回复
/// </summary>
public class ExternalAutoReply
{
public string InternalReplyContent// 内部的回复内容
/// <summary>
public string ExternalReplyContent// 外部的回复内容
public DateTime StartTime// 回复开始时间
public DateTime EndTime// 回复结束时间
public string State
// inOrg只答覆我的聯繫人 / outOrg答覆我組織外的任何人 / none不開啟 自動答覆我組織外的人
public string OnlyReplyMyContactOrReplyOutOrgPersonal
public string OnlyTime// 是否開啟在時間段範圍內自動回覆 1開啟 0關閉
public string AutoReplyOutOrgPersonal// 自動答覆我組織外的人 1開啟 0關閉
}
}