Posted By

LeeRJohnson on 11/23/08


Tagged

snipplr model api xml-rpc structs snipplrnet


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

umang_nine
Trinovantes
khouser
wraith808


Snipplr API XML-RPC Structs


 / Published in: C#
 

URL: api-structs

I have not tested all structs yet!!!

  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.  
  34. #endregion

Report this snippet  

You need to login to post a comment.