Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* comments renamed CreatedTime property

+ disabled FieldNamesMustNotBeginWithUnderscore
* Graph User Gender DataMember
* Post to return commentcollection
  • Loading branch information...
commit f9979a4a15453444a20d8b657786a9e8c6b3d30c 1 parent 5381064
@prabirshrestha authored
View
2  src/FacebookSharp.Core/Schemas/Graph/Comment.cs
@@ -24,7 +24,7 @@ public class Comment : GraphObject
/// Gets or sets the date on which the comment was created.
/// </summary>
[DataMember(Name = "created_time")]
- public string Created_Time { get; set; }
+ public string CreatedTime { get; set; }
}
public class CommentCollection : Connection<Comment>
View
8 src/FacebookSharp.Core/Schemas/Graph/Post.cs
@@ -96,11 +96,17 @@ public class Post : GraphObject
[DataMember(Name = "to")]
public List<To> To { get; set; }
+ private CommentCollection _comments;
+
/// <summary>
/// Gets or sets the comments for this post.
/// </summary>
[DataMember(Name = "comments")]
- public List<Comment> Comments { get; set; }
+ public CommentCollection Comments
+ {
+ get { return _comments ?? (_comments = new CommentCollection()); }
+ set { _comments = value; }
+ }
//todo action
}
View
2  src/FacebookSharp.Core/Schemas/Graph/User.cs
@@ -37,7 +37,7 @@ public class User : GraphObject
//[DataMember(Name = "educations")]
//public List<Education> Educations { get; set; }
- [DataMember(Name = "last_name")]
+ [DataMember(Name = "gender")]
public string Gender { get; set; }
[DataMember(Name = "relationship_status")]
View
10 src/Settings.StyleCop
@@ -20,5 +20,15 @@
</Rules>
<AnalyzerSettings />
</Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
+ <Rules>
+ <Rule Name="FieldNamesMustNotBeginWithUnderscore">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
</Analyzers>
</StyleCopSettings>
Please sign in to comment.
Something went wrong with that request. Please try again.