Example #1
0
        public async Task <IDictionary <int, RafflePrize> > GetItems()
        {
            var results = await SyncListItemResource.ReadAsync(
                pathServiceSid : _twilioSyncServiceSid,
                pathListSid : _twilioSyncListSid);

            return(results.ToDictionary(entry => entry.Index.Value, entry => JsonConvert.DeserializeObject <RafflePrize>(JsonConvert.SerializeObject(entry.Data))));
        }