예제 #1
0
        public SimpleUser ToSimpleUser(string friendType, int totalPost = -1)
        {
            var simpleUser = new SimpleUser(Id, Name, Avatar, Job, FriendType.TryParse(friendType), totalPost);

            return(simpleUser);
        }
예제 #2
0
        public JObject ToSimpleJson(string friendType, int totalPost = -1)
        {
            var simpleUser = new SimpleUser(Id, Name, Avatar, Job, FriendType.TryParse(friendType), totalPost);

            return(JObject.FromObject(simpleUser));
        }