changeset 221:37ddf81333d3 deploy 2011-09-13

Modificación por problemas al cambiar la posición de screen_name en el json que devuelve twitter (lo pasaron al final)
author nelopauselli
date Tue, 13 Sep 2011 09:01:58 -0300
parents 42a1068e73c8
children 68b09c30b0d2
files Agendas/trunk/src/Agendas.Twitter/oAuthTwitter.cs
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Twitter/oAuthTwitter.cs	Fri Sep 09 11:26:17 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Twitter/oAuthTwitter.cs	Tue Sep 13 09:01:58 2011 -0300
@@ -41,15 +41,15 @@
 		public static string GetResponseContent(string response, string tagName)
 		{
 			var tagStart = "\"" + tagName + "\":";
-			var tagEnd = ",";
+			var tagEnd = "\"";
 
 			var start = response.IndexOf(tagStart) + tagStart.Length;
 			if (start > tagStart.Length)
 			{
-				var end = response.IndexOf(tagEnd, start);
+				var end = response.IndexOf(tagEnd, start+1);
 				if (end > 0)
 				{
-					return response.Substring(start + 1, end - start - 2);
+					return response.Substring(start + 1, end - start - 1);
 				}
 			}
 			return string.Empty;