예제 #1
0
        public async Task GetAddressBookByTag()
        {
            ApiResponse response = await AddressBookApi.GetAddressBookByTag("John");

            Assert.IsFalse(response.HasError);
            List <AddressBookInfo> result = response.GetResult <List <AddressBookInfo> >();

            Assert.IsNotNull(result);
        }
예제 #2
0
        public Result <List <AddressBookInfo> > GetAddressBookByTag(string tag)
        {
            ApiResponse response = AddressBookApi.GetAddressBookByTag(tag).Result;

            return(GetResult <List <AddressBookInfo> >(response));
        }