Esempio n. 1
0
        private async UniTask LoadTableAsync()
        {
            AirTableClient client     = new AirTableClient("key3NNedymjZdyPup");
            AirTableBase   clientBase = client.GetBase("applzeJ39lPimqZgv");

            try
            {
                Common[] allRows = await clientBase.LoadTableAsync <Common>();

                foreach (Common row in allRows)
                {
                    // 1レコードずつ取り出す処理
                    Debug.Log(row.Name + ":" + row.Notes);
                }
            }
            catch (Exception e)
            {
                Debug.LogError(e);
                throw;
            }
        }
Esempio n. 2
0
        private static async Task LoadMyEnumData2(AirTableBase clientBase)
        {
            TableRow[] allRows2 = await clientBase.LoadTableAsync <TableRow>("Setting2");

            InitList <MyEnum2>(s_MyEnum2Data, allRows2);
        }