예제 #1
0
        public override List <ISocialUser> ParseUsers(string inputData)
        {
            var result = new List <ISocialUser>();

            var data = new JSONObject(inputData);

            var field = data.GetField("response");

            if (field.IsArray == true)
            {
                foreach (var item in field.list)
                {
                    var user = new VKLocalUser();
                    user.socialModule = this.socialModule;
                    user.userData     = item.ToString();
                    user.ParseData(item);

                    result.Add(user);
                }
            }

            return(result);
        }
예제 #2
0
		public override List<ISocialUser> ParseUsers(string inputData) {
			
			var result = new List<ISocialUser>();

			var data = new JSONObject(inputData);

			var field = data.GetField("response");
			if (field.IsArray == true) {

				foreach (var item in field.list) {
					
					var user = new VKLocalUser();
					user.socialModule = this.socialModule;
					user.userData = item.ToString();
					user.ParseData(item);

					result.Add(user);
					
				}

			}

			return result;
			
		}