add description to user account

This commit is contained in:
2018-07-17 00:33:35 +02:00
parent 9890a9c8b4
commit c3a9f921eb
3 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -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
+5
View File
@@ -58,5 +58,10 @@ namespace PocketSharp.Models
/// Follow count.
/// </summary>
public int Follows { get; set; }
/// <summary>
/// Profile text.
/// </summary>
public string Description { get; set; }
}
}
+2
View File
@@ -43,5 +43,7 @@ namespace PocketSharp.Models
public int Follow_count { get; set; }
public int Follower_count { get; set; }
public string Description { get; set; }
}
}