예제 #1
0
 public YoutubeLiveChatMessageItem(string kind,
                                   string etag,
                                   string id,
                                   Snippet snippet,
                                   AuthorDetails authorDetails)
 {
     Kind          = kind;
     Etag          = etag;
     Id            = id;
     Snippet       = snippet;
     AuthorDetails = authorDetails;
 }
예제 #2
0
 public YoutubeLiveChatMessageItem(dynamic inYoutubeLiveChatMessageItem)
 {
     try
     {
         Kind          = inYoutubeLiveChatMessageItem.kind;
         Etag          = inYoutubeLiveChatMessageItem.etag;
         Id            = inYoutubeLiveChatMessageItem.id;
         Snippet       = new Snippet(inYoutubeLiveChatMessageItem.snippet);
         AuthorDetails = new AuthorDetails(inYoutubeLiveChatMessageItem.authorDetails);
     }
     catch (Exception e)
     {
         string errorMessage = e.Message;
         string source       = e.Source;
         string stacktrace   = e.StackTrace;
     }
 }