Exemple #1
0
        public async Task GetLayoutHashtag()
        {
            var layout = await EntryLayout.GetLayoutHashtagAsync(Helper.Client, Helper.Kind, "yurucamp")
                         .ConfigureAwait(false);

            if (layout.Undeserialized != null)
            {
                throw new JsonException("Undeserialized is not empty");
            }

            var json = JsonSerializer.Serialize(layout, Core.Options);
        }
Exemple #2
0
 void Awake()
 {
     if (Managers.Instance.IsPhone)
     {
         mode   = EntryMode.Lista;
         layout = listLayout;
         grillaLayout.area.SetActive(false);
         GetComponent <RectTransform>().sizeDelta = new Vector2(0, 120);
     }
     else
     {
         mode   = EntryMode.Grilla;
         layout = grillaLayout;
         listLayout.area.SetActive(false);
     }
 }