ews model

来源:互联网 发布:网络出版物的图书 编辑:程序博客网 时间:2024/06/08 08:22
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關閉
    }


}
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 淘宝绑定的支付宝账号忘记了怎么办 支付宝绑定的微博账号忘记了怎么办 怎么知道自己的淘宝密码忘了怎么办 更换扣扣头像图片太大放不下怎么办 每次登入淘宝都要手机验证码怎么办 手机停机收不到唯品会验证码怎么办 魅蓝手机账户密码忘了怎么办 支付宝登录失败请稍后再试怎么办 万王之王3d限制注册了怎么办 绑定手机号无法登陆以前微信怎么办 手机号注册了淘宝如果不用了怎么办 淘宝网登陆要手机验证码怎么办 手机清理了微信图片打不开了怎么办 到淘宝网买东西卖家拒绝退货怎么办 淘宝店铺检测出他人认证图片怎么办 文件过大无法复制到u盘怎么办 淘宝账号上不去总说网络不好怎么办 手机上登录微信一直闪退怎么办 京东账号手机号换了登陆不了怎么办 对方账号停止收款我们汇了款怎么办 淘宝店铺严重违规被扣12分怎么办 中国网银登陆不会自动弹出怎么办 高考报考的时候页面无法显示怎么办 如果卖家收到货不退款怎么办 淘宝退货卖家收到货不退款怎么办 手机号码淘宝被注册跟换绑定怎么办 微信发送ppt显示文件太大怎么办 微信手机号丢了微信登不了钱怎么办 新买的号码注册过支付宝怎么办 新买的号码被注册过支付宝怎么办 支付宝同号码注册了新的帐号怎么办 新卖的号码有人注册过支付宝怎么办 我的号码被别人注册了支付宝怎么办 别人用我的号码注册了支付宝怎么办 打开支付宝进入到淘宝的界面怎么办 我的手机号注销了支付宝账号怎么办 微博绑定的支付宝账号注销了怎么办 闲鱼买家申请退款卖家不同意怎么办 微信与手机旧版本不一致怎么办 在应用宝里下载微信老是失败怎么办 使用u盘储存视频显示不兼容怎么办