Skip to content

Commit

Permalink
Merge pull request #23 from punjabisoul/master
Browse files Browse the repository at this point in the history
Fix for issue #22
  • Loading branch information
alexjamesbrown committed Apr 26, 2013
2 parents fa557b3 + 1d208ae commit 95d47ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions JoeBlogs/classes/CommentCount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ public class CommentCount
/// <summary>
/// The number of comments marked as approved.
/// </summary>
public int Approved;
public object Approved;

/// <summary>
/// The number of comments awaiting moderation
/// </summary>
public int AwaitingModeration;
public object AwaitingModeration;

/// <summary>
/// The number of comments marked as spam
/// </summary>
public int Spam;
public object Spam;

/// <summary>
/// The total number of comments.
/// </summary>
public int TotalComments;
public object TotalComments;
}
}
}
10 changes: 5 additions & 5 deletions JoeBlogs/xmlRpcStructs/CommentCount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace JoeBlogs
[XmlRpcMissingMapping(MappingAction.Ignore)]
public struct XmlRpcCommentCount
{
public int approved; //i think this maybe an error on WP part - should be int according to their documentation: http://codex.wordpress.org/XML-RPC#wp.getCommentCount
public int awaiting_moderation;
public int spam;
public int total_comments;
public object approved; //i think this maybe an error on WP part - should be int according to their documentation: http://codex.wordpress.org/XML-RPC#wp.getCommentCount
public object awaiting_moderation;
public object spam;
public object total_comments;
}
}
}

0 comments on commit 95d47ab

Please sign in to comment.