Created
June 28, 2017 14:46
-
-
Save aki-lua87/7ee41c7c60f1179e7ca3155d47e685e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LINEからの入力JSONの形式 | |
public class LineReply | |
{ | |
public Event[] events { get; set; } | |
} | |
public class Event | |
{ | |
public string timestamp { get; set; } | |
public string replyToken { get; set; } | |
public Message message { get; set; } | |
public string type { get; set; } | |
public Source source { get; set; } | |
} | |
public class Message | |
{ | |
public string type { get; set; } | |
public string id { get; set; } | |
public string text { get; set; } | |
} | |
public class Source | |
{ | |
public string userId { get; set; } | |
public string type { get; set; } | |
} | |
// LINEに投げる形 | |
public class Response | |
{ | |
public string replyToken { get; set; } | |
public List<Messages> messages { get; set; } | |
} | |
public class Messages | |
{ | |
public string type { get; set; } | |
public string text { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment