예제 #1
0
        public Contributor(JsonElement contributor)
        {
            if (contributor.IsNull())
            {
                return;
            }

            if (contributor.ValueKind == JsonValueKind.Number)
            {
                ID = contributor.GetInt64().ToString();
            }
            else
            {
                ID         = contributor.GetLong("id_str").ToString();
                ScreenName = contributor.GetString("screen_name");
            }
        }
예제 #2
0
 internal Cursors(JsonElement cursors)
 {
     Next     = cursors.GetLong("next_cursor");
     Previous = cursors.GetLong("previous_cursor");
 }