Skip to content

Instantly share code, notes, and snippets.

@aki-lua87
Created June 28, 2017 14:46
Show Gist options
  • Save aki-lua87/7ee41c7c60f1179e7ca3155d47e685e4 to your computer and use it in GitHub Desktop.
Save aki-lua87/7ee41c7c60f1179e7ca3155d47e685e4 to your computer and use it in GitHub Desktop.
// 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