protected override void PrepareQuery()
 {
     base.PrepareQuery();
     // check for deleted contacts only when we have a real date
     if (UpdatedFrom != DateTime.MinValue)
     {
         AddQueryItem(YMST.c_updatedFrom, UpdatedFrom.ToMillisecondsFromEpoch().ToString());
         AddQueryItem(YMST.c_deleteType, ((int)YouMailDeleteType.NoRestriction).ToString());
     }
     else
     {
         RemoveQueryItem(YMST.c_updatedFrom);
         RemoveQueryItem(YMST.c_deleteType);
     }
 }
Exemple #2
0
        protected override void PrepareQuery()
        {
            switch (QueryType)
            {
            case QueryType.GetMessages:
            case QueryType.GetMessagesSince:
                AddQueryItem(YMST.c_updatedFrom, UpdatedFrom.ToMillisecondsFromEpoch().ToString());
                break;

            case QueryType.GetMessagesCreatedSince:
                AddQueryItem(YMST.c_createdFrom, UpdatedFrom.ToMillisecondsFromEpoch().ToString());
                break;

            case QueryType.GetHistory:
                AddQueryItem(YMST.c_startDate, UpdatedFrom.ToMillisecondsFromEpoch().ToString());
                break;
            }
        }