From c3a9f921eb11367a3b5867b4e18bc74662264ae6 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Tue, 17 Jul 2018 00:33:35 +0200 Subject: [PATCH] add description to user account --- PocketSharp/Components/Account.cs | 3 ++- PocketSharp/Models/PocketUser.cs | 5 +++++ PocketSharp/Models/Response/GetUser.cs | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/PocketSharp/Components/Account.cs b/PocketSharp/Components/Account.cs index ea761b5..87e85f8 100644 --- a/PocketSharp/Components/Account.cs +++ b/PocketSharp/Components/Account.cs @@ -133,7 +133,8 @@ namespace PocketSharp Followers = response.Account?.Profile?.Follower_count ?? 0, Follows = response.Account?.Profile?.Follow_count ?? 0, Avatar = avatar != null ? new Uri(avatar, UriKind.Absolute) : null, - IsDefaultAvatar = avatar == null || avatar.Contains("pocket-profile-images.") + IsDefaultAvatar = avatar == null || avatar.Contains("pocket-profile-images."), + Description = response.Account?.Profile?.Description }; // save code to client diff --git a/PocketSharp/Models/PocketUser.cs b/PocketSharp/Models/PocketUser.cs index 577a062..88a0e36 100644 --- a/PocketSharp/Models/PocketUser.cs +++ b/PocketSharp/Models/PocketUser.cs @@ -58,5 +58,10 @@ namespace PocketSharp.Models /// Follow count. /// public int Follows { get; set; } + + /// + /// Profile text. + /// + public string Description { get; set; } } } diff --git a/PocketSharp/Models/Response/GetUser.cs b/PocketSharp/Models/Response/GetUser.cs index 5c2629b..4693d7f 100644 --- a/PocketSharp/Models/Response/GetUser.cs +++ b/PocketSharp/Models/Response/GetUser.cs @@ -43,5 +43,7 @@ namespace PocketSharp.Models public int Follow_count { get; set; } public int Follower_count { get; set; } + + public string Description { get; set; } } }