Пример #1
0
		public async Task<IEnumerable<string>> GetFollowersAsync()
		{
			var session = auth.SessionId;
			var user = auth.UserName;
			using (var dao = new FeedDAO (config)) {
				var result = await dao.GetFollowersAsync (user, session);
				var followers = result.data;
				return followers.Select (f => f.user.name);
			}
		}
Пример #2
0
		public async Task<bool> UnfollowAsync(string username)
		{
			var session = auth.SessionId;
			using (var dao = new FeedDAO (config)) {
				var result = await dao.UnfollowAsync (username, session);
				var response = result.data;

				if (result.result.ToLower () == "ok") {
					return true;

				} else {
					return false;
				}
			}
		}