Created
August 29, 2011 20:25
-
-
Save syonbori/1179311 to your computer and use it in GitHub Desktop.
patch for TIG error on empty <following></following> elements in User object from XML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: TwitterService.cs | |
=================================================================== | |
--- TwitterService.cs (revision 733) | |
+++ TwitterService.cs (working copy) | |
@@ -1924,8 +1924,16 @@ | |
[XmlElement("status")] | |
public Status Status; | |
[XmlElement("following")] | |
- public Boolean Following; | |
+ private String _following_str; | |
+// [XmlElement("following")] | |
+// public Boolean Following; | |
+ public Boolean Following { | |
+ get{ | |
+ return (_following_str == "true"); | |
+ } | |
+ } | |
+ | |
private static Object _syncObject = new object(); | |
private static XmlSerializer _serializer = null; | |
static User() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment