示例#1
0
        private static TumblrDataGroup CreateTumblrGroup(JsonObject obj)
        {
            TumblrDataGroup group    = new TumblrDataGroup(obj.Stringify());
            string          hostname = group.Url;

            hostname = hostname.Substring(7);
            hostname = hostname.Substring(0, hostname.Length - 1);
            group.SetGroupImage("http://api.tumblr.com/v2/blog/" + hostname + "/avatar/512");

            _tumblrDataSource.AllGroups.Add(group);
            return(group);
        }
示例#2
0
        private static TumblrDataGroup CreateTumblrGroup(JsonObject obj)
        {
            TumblrDataGroup group = new TumblrDataGroup(obj.Stringify());
            string hostname = group.Url;
            hostname = hostname.Substring(7);
            hostname = hostname.Substring(0, hostname.Length - 1);
            group.SetGroupImage("http://api.tumblr.com/v2/blog/" + hostname + "/avatar/512");

            _tumblrDataSource.AllGroups.Add(group);
            return group;
        }