Beispiel #1
0
            public new Task <ListMessagesResponse> ExecuteAsync()
            {
                var result = new ListMessagesResponse
                {
                    Messages = GmailUtil.GetFakeGmailMessageList()
                };

                return(Task.FromResult(result));
            }
Beispiel #2
0
            public new Task <GmailMessage> ExecuteAsync()
            {
                if (UserId != "me")
                {
                    throw new Exception("User ID not support");
                }

                return(Task.FromResult(GmailUtil.GetFakeGmailMessage()));
            }
Beispiel #3
0
            public new ListMessagesResponse Execute()
            {
                var result      = new ListMessagesResponse();
                var messageList = GmailUtil.GetFakeGmailMessageList();

                foreach (var message in messageList)
                {
                    result.Messages.Add(message);
                }

                return(result);
            }