/// <summary> /// Create new changeflag request /// </summary> /// <param name="msg"></param> /// <param name="flag"></param> /// <param name="value"></param> /// <param name="callback"></param> public ChangeFlagRequest(IMessage msg, MessageFlag flag, bool value, RequestCompletedCallback callback) : base(callback) { PreCommand = new SelectFolderCommand(msg.Folder, null); Command = new ChangeFlagCommand(msg, flag, value, null); ProcessorType = typeof (ChangeFlagProcessor); }
public DeleteMessageRequest(IMessage msg, RequestCompletedCallback callback) : base(callback) { PreCommand = new SelectFolderCommand(msg.Folder, null); Command = new ChangeFlagCommand(msg, MessageFlag.Deleted, true, null); PostCommand = new ExpungeCommand(null); ProcessorType = typeof (DeleteMessageProcessor); }