We Recommend

Accelerated C# 2008 Accelerated C# 2008
This book is both a rapid tutorial and a permanent reference. You’ll quickly master C# syntax while learning how the CLR simplifies many programming tasks. You’ll also learn best practices that ensure your code will be efficient, reusable, and robust. Why spend months or years discovering the best ways to design and code C# when this book will show you how to do things the right way, right from the start?


Posted By

LeeRJohnson on 11/23/08


Tagged

snipplr model api xml-rpc structs


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

umang_nine


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 snippet’s 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.