private static Microsoft.Exchange.Connections.Eas.Model.Request.GetItemEstimate.Collection CollectionForItemEstimate(string syncKey, string serverId, SyncFilterType filter)
 {
     Microsoft.Exchange.Connections.Eas.Model.Request.GetItemEstimate.Collection collection = new Microsoft.Exchange.Connections.Eas.Model.Request.GetItemEstimate.Collection
     {
         SyncKey      = syncKey,
         CollectionId = serverId
     };
     Microsoft.Exchange.Connections.Eas.Model.Request.AirSync.Options item = new Microsoft.Exchange.Connections.Eas.Model.Request.AirSync.Options
     {
         FilterType = new byte?((byte)filter)
     };
     collection.Options.Add(item);
     return(collection);
 }
        internal static GetItemEstimateRequest CreateEstimateRequest(string syncKey, string serverId, bool recentOnly)
        {
            SyncFilterType filter = recentOnly ? SyncFilterType.ThreeDaysBack : SyncFilterType.NoFilter;

            Microsoft.Exchange.Connections.Eas.Model.Request.GetItemEstimate.Collection item = EasRequestGenerator.CollectionForItemEstimate(syncKey, serverId, filter);
            return(new GetItemEstimateRequest
            {
                Collections =
                {
                    item
                }
            });
        }