コード例 #1
0
        public static void CallSaveMessages(int clientId, LinkedDictionary <DateTime, string> messages)
        {
            var data = new List <MessageData>(messages.ConvertAll <KeyValuePair <DateTime, string>, MessageData>(i => new MessageData {
                Date = i.Key, Message = i.Value
            }));

            using (var client = new DataServiceClient())
                client.SaveMessages(data.ToArray(), clientId);
        }