Permalink
Browse files

Committed contribution from Paul Rony (SplendidCRM Software)

  • Loading branch information...
bbaia committed Apr 22, 2012
1 parent 82e22f3 commit 08362b35b3b408f9c881b9516f0caf9b8dbaa322
Showing with 11,324 additions and 54 deletions.
  1. +1,231 −16 examples/Spring.ConsoleQuickStart/src/Spring.ConsoleQuickStart/Program.cs
  2. +54 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Account.cs
  3. +120 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Album.cs
  4. +95 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Checkin.cs
  5. +56 −0 src/Spring.Social.Facebook/Social/Facebook/Api/CheckinPost.cs
  6. +81 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Comment.cs
  7. +56 −0 src/Spring.Social.Facebook/Social/Facebook/Api/EducationEntry.cs
  8. +103 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Event.cs
  9. +61 −0 src/Spring.Social.Facebook/Social/Facebook/Api/EventInvitee.cs
  10. +72 −0 src/Spring.Social.Facebook/Social/Facebook/Api/FacebookApiError.cs
  11. +112 −0 src/Spring.Social.Facebook/Social/Facebook/Api/FacebookApiException.cs
  12. +58 −0 src/Spring.Social.Facebook/Social/Facebook/Api/FacebookLink.cs
  13. +236 −0 src/Spring.Social.Facebook/Social/Facebook/Api/FacebookProfile.cs
  14. +46 −0 src/Spring.Social.Facebook/Social/Facebook/Api/FamilyMember.cs
  15. +37 −0 src/Spring.Social.Facebook/Social/Facebook/Api/FqlResultMapper.cs
  16. +96 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Group.cs
  17. +47 −0 src/Spring.Social.Facebook/Social/Facebook/Api/GroupMemberReference.cs
  18. +77 −0 src/Spring.Social.Facebook/Social/Facebook/Api/GroupMembership.cs
  19. +90 −0 src/Spring.Social.Facebook/Social/Facebook/Api/ICommentOperations.cs
  20. +227 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IEventOperations.cs
  21. +69 −11 src/Spring.Social.Facebook/Social/Facebook/Api/IFacebook.cs
  22. +447 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IFeedOperations.cs
  23. +42 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IFqlOperations.cs
  24. +271 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IFriendOperations.cs
  25. +124 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IGraphApi.cs
  26. +117 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IGroupOperations.cs
  27. +251 −0 src/Spring.Social.Facebook/Social/Facebook/Api/ILikeOperations.cs
  28. +353 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IMediaOperations.cs
  29. +43 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IOpenGraphOperations.cs
  30. +116 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IPageOperations.cs
  31. +133 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IPlacesOperations.cs
  32. +133 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IQuestionOperations.cs
  33. +99 −0 src/Spring.Social.Facebook/Social/Facebook/Api/IUserOperations.cs
  34. +32 −0 src/Spring.Social.Facebook/Social/Facebook/Api/ImageType.cs
  35. +224 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/AbstractFacebookOperations.cs
  36. +80 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/CommentTemplate.cs
  37. +156 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/EventTemplate.cs
  38. +197 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/FacebookErrorHandler.cs
  39. +317 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/FacebookTemplate.cs
  40. +268 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/FeedTemplate.cs
  41. +49 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/FqlTemplate.cs
  42. +205 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/FriendTemplate.cs
  43. +99 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/GroupTemplate.cs
  44. +49 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/AccountDeserializer.cs
  45. +96 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/AlbumDeserializer.cs
  46. +57 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/CheckinDeserializer.cs
  47. +53 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/CheckinPostDeserializer.cs
  48. +66 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/CommentDeserializer.cs
  49. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/EducationEntryDeserializer.cs
  50. +75 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/EventDeserializer.cs
  51. +66 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/EventInviteeDeserializer.cs
  52. +91 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/FacebookProfileDeserializer.cs
  53. +48 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/FamilyMemberDeserializer.cs
  54. +73 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/GroupDeserializer.cs
  55. +48 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/GroupMemberReferenceDeserializer.cs
  56. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/GroupMembershipDeserializer.cs
  57. +48 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/ImageDeserializer.cs
  58. +49 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/ImageListDeserializer.cs
  59. +68 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/InvitationDeserializer.cs
  60. +47 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/JsonUtils.cs
  61. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/LinkPostDeserializer.cs
  62. +52 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/ListDeserializer.cs
  63. +52 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/LocationDeserializer.cs
  64. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/MusicPostDeserializer.cs
  65. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/NotePostDeserializer.cs
  66. +59 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/PageDeserializer.cs
  67. +71 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/PhotoDeserializer.cs
  68. +53 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/PhotoPostDeserializer.cs
  69. +93 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/PostDeserializer.cs
  70. +53 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/QuestionDeserializer.cs
  71. +52 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/QuestionOptionDeserializer.cs
  72. +47 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/ReferenceDeserializer.cs
  73. +50 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/StatusPostDeserializer.cs
  74. +50 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/StoryTagDeserializer.cs
  75. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/StoryTagMapDeserializer.cs
  76. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/SwfPostDeserializer.cs
  77. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/TagDeserializer.cs
  78. +59 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/VideoDeserializer.cs
  79. +54 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/VideoPostDeserializer.cs
  80. +50 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/Json/WorkEntryDeserializer.cs
  81. +151 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/LikeTemplate.cs
  82. +235 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/MediaTemplate.cs
  83. +59 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/OpenGraphTemplate.cs
  84. +133 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/PageTemplate.cs
  85. +112 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/PlacesTemplate.cs
  86. +100 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/QuestionTemplate.cs
  87. +114 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Impl/UserTemplate.cs
  88. +70 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Invitation.cs
  89. +51 −0 src/Spring.Social.Facebook/Social/Facebook/Api/LinkPost.cs
  90. +59 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Location.cs
  91. +46 −0 src/Spring.Social.Facebook/Social/Facebook/Api/MusicPost.cs
  92. +46 −0 src/Spring.Social.Facebook/Social/Facebook/Api/NotePost.cs
  93. +78 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Page.cs
  94. +166 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Photo.cs
  95. +50 −0 src/Spring.Social.Facebook/Social/Facebook/Api/PhotoPost.cs
  96. +103 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Post.cs
  97. +80 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Question.cs
  98. +78 −0 src/Spring.Social.Facebook/Social/Facebook/Api/QuestionOption.cs
  99. +54 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Reference.cs
  100. +36 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Resource.cs
  101. +32 −0 src/Spring.Social.Facebook/Social/Facebook/Api/RsvpStatus.cs
  102. +44 −0 src/Spring.Social.Facebook/Social/Facebook/Api/StatusPost.cs
  103. +54 −0 src/Spring.Social.Facebook/Social/Facebook/Api/StoryTag.cs
  104. +46 −0 src/Spring.Social.Facebook/Social/Facebook/Api/SwfPost.cs
  105. +59 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Tag.cs
  106. +113 −0 src/Spring.Social.Facebook/Social/Facebook/Api/Video.cs
  107. +52 −0 src/Spring.Social.Facebook/Social/Facebook/Api/VideoPost.cs
  108. +52 −0 src/Spring.Social.Facebook/Social/Facebook/Api/WorkEntry.cs
  109. +28 −27 src/Spring.Social.Facebook/Social/Facebook/Connect/FacebookServiceProvider.cs
  110. +106 −0 src/Spring.Social.Facebook/Spring.Social.Facebook.2008-NET35.csproj

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,54 @@
+#region License
+
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#endregion
+
+using System;
+
+namespace Spring.Social.Facebook.Api
+{
+ /// <summary>
+ /// </summary>
+ /// <author>Craig Walls</author>
+ /// <author>SplendidCRM (.NET)</author>
+#if !SILVERLIGHT
+ [Serializable]
+#endif
+ public class Account
+ {
+ public Account()
+ {
+ }
+
+ public Account(string id, string name, string category, string accessToken)
+ {
+ this.ID = id;
+ this.Name = name;
+ this.Category = category;
+ this.AccessToken = accessToken;
+ }
+
+ public string ID { get; set; }
+
+ public string Name { get; set; }
+
+ public string Category { get; set; }
+
+ public string AccessToken { get; set; }
+ }
+}
@@ -0,0 +1,120 @@
+#region License
+
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#endregion
+
+using System;
+
+namespace Spring.Social.Facebook.Api
+{
+ /// <summary>
+ /// Model class representing a Facebook photo album.
+ /// </summary>
+ /// <author>Craig Walls</author>
+ /// <author>SplendidCRM (.NET)</author>
+#if !SILVERLIGHT
+ [Serializable]
+#endif
+ public class Album
+ {
+ public enum enumType { NORMAL, MOBILE, PROFILE, WALL, FRIENDS_WALLS, UNKNOWN }
+ public enum enumPrivacy { EVERYONE, FRIENDS_OF_FRIENDS, FRIENDS, CUSTOM }
+
+ public Album()
+ {
+ }
+
+ // http://developers.facebook.com/docs/reference/api/album/
+ public Album(String id, Reference from, String name, enumType type, String link, int count, enumPrivacy privacy, DateTime createdTime)
+ {
+ this.ID = id ;
+ this.From = from ;
+ this.Name = name ;
+ this.Link = link ;
+ this.Privacy = privacy ;
+ this.Count = count ;
+ this.Type = type ;
+ this.CreatedTime = createdTime;
+ }
+
+ /// <summary>
+ /// The album ID
+ /// </summary>
+ public string ID { get; set; }
+
+ /// <summary>
+ /// The profile that created this album
+ /// </summary>
+ public Reference From { get; set; }
+
+ /// <summary>
+ /// The title of the album
+ /// </summary>
+ public string Name { get; set; }
+
+ /// <summary>
+ /// The description of the album
+ /// </summary>
+ public string Description { get; set; }
+
+ /// <summary>
+ /// The location of the album
+ /// </summary>
+ public string Location { get; set; }
+
+ /// <summary>
+ /// A link to this album on Facebook
+ /// </summary>
+ public string Link { get; set; }
+
+ /// <summary>
+ /// The album cover photo ID
+ /// </summary>
+ public string CoverPhotoId { get; set; }
+
+ /// <summary>
+ /// The privacy settings for the album
+ /// </summary>
+ public enumPrivacy Privacy { get; set; }
+
+ /// <summary>
+ /// The number of photos in this album
+ /// </summary>
+ public int Count { get; set; }
+
+ /// <summary>
+ /// The type of the album: profile, mobile, wall, normal or album
+ /// </summary>
+ public enumType Type { get; set; }
+
+ /// <summary>
+ /// The time the photo album was initially created
+ /// </summary>
+ public DateTime? CreatedTime { get; set; }
+
+ /// <summary>
+ /// The last time the photo album was updated
+ /// </summary>
+ public DateTime? UpdatedTime { get; set; }
+
+ /// <summary>
+ /// Determines whether the UID can upload to the album and returns true if the user owns the album, the album is not full, and the app can add photos to the album
+ /// </summary>
+ public bool CanUpload { get; set; }
+ }
+}
@@ -0,0 +1,95 @@
+#region License
+
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#endregion
+
+using System;
+using System.Collections.Generic;
+
+namespace Spring.Social.Facebook.Api
+{
+ /// <summary>
+ /// Model class representing a user checkin on Facebook Places.
+ /// </summary>
+ /// <author>Craig Walls</author>
+ /// <author>SplendidCRM (.NET)</author>
+#if !SILVERLIGHT
+ [Serializable]
+#endif
+ public class Checkin
+ {
+ public Checkin()
+ {
+ }
+
+ // http://developers.facebook.com/docs/reference/api/checkin/
+ public Checkin(string id, Page place, Reference from, Reference application, DateTime createdTime)
+ {
+ this.ID = id;
+ this.Place = place;
+ this.From = from;
+ this.Application = application;
+ this.CreatedTime = createdTime;
+ }
+
+ /// <summary>
+ /// The checkin ID
+ /// </summary>
+ public string ID { get; set; }
+
+ /// <summary>
+ /// The ID and name of the user who made the checkin
+ /// </summary>
+ public Reference From { get; set; }
+
+ /// <summary>
+ /// The users the author tagged in the checkin
+ /// </summary>
+ public List<Reference> Tags { get; set; }
+
+ /// <summary>
+ /// Information about the Facebook Page that represents the location of the checkin
+ /// </summary>
+ public Page Place { get; set; }
+
+ /// <summary>
+ /// Information about the application that made the checkin
+ /// </summary>
+ public Reference Application { get; set; }
+
+ /// <summary>
+ /// The time the checkin was created
+ /// </summary>
+ public DateTime? CreatedTime { get; set; }
+
+ /// <summary>
+ /// Users who like the checkin
+ /// </summary>
+ public List<Reference> Likes { get; set; }
+
+ /// <summary>
+ /// The message the user added to the checkin
+ /// </summary>
+ public string Message { get; set; }
+
+ /// <summary>
+ /// All of the comments on this link
+ /// </summary>
+ public List<Comment> Comments { get; set; }
+ }
+}
@@ -0,0 +1,56 @@
+#region License
+
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#endregion
+
+using System;
+using System.Collections.Generic;
+
+namespace Spring.Social.Facebook.Api
+{
+ /// <summary>
+ /// Model class representing a feed Post to announce a Checkin on a user's wall.
+ /// Note that although a CheckinPost contains some details about a Checkin, it is not the Checkin object itself.
+ /// To get the Checkin, get the Checkin ID by calling getCheckinId() and then call getChecking(checkinId) on CheckinOperations.
+ /// </summary>
+ /// <author>Craig Walls</author>
+ /// <author>SplendidCRM (.NET)</author>
+#if !SILVERLIGHT
+ [Serializable]
+#endif
+ public class CheckinPost : Post
+ {
+ public CheckinPost()
+ {
+ }
+
+ public CheckinPost(string id, Reference from, DateTime createdTime, DateTime updatedTime)
+ : base(id, from, createdTime, updatedTime)
+ {
+ }
+
+ public Page Place { get; set; }
+
+ public List<Tag> Tags { get; set; }
+
+ public String CheckinId()
+ {
+ return this.ID.Split('_')[1];
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 08362b3

Please sign in to comment.