Snipplr API XML-RPC Structs


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #region Snipplr XML-RPC API Models
  2.  
  3. public struct Snippet
  4. {
  5. public string id;
  6. public string user_id;
  7. public string username;
  8. public string title;
  9. public string language;
  10. public string comment;
  11. public string created; //datetime when snippet was created
  12. public string source;
  13. public string snipplr_url; //url to view snippet
  14. public string tags; //tags (space delimited list of the snippets tags)
  15. }
  16. public struct SnippetList
  17. {
  18. public string title, id;
  19. public SnippetUpdate updated;
  20. public bool favorite;
  21. }
  22. public struct SnippetLangList
  23. {
  24. public string[] urlname;
  25. public string[] pretty_name;
  26. }
  27.  
  28. public struct SnippetUpdate
  29. {
  30. public DateTime datetime;
  31. public string timezone;
  32. }
  33. #endregion
  34.  
  35.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.