internal static List <ListPageDataModel> GetListPageData(IApp app) { string listPageDataAsBase64String; if (app is iOSApp) { listPageDataAsBase64String = app.Invoke("getListViewPageDataAsBase64String:", "").ToString(); } else { listPageDataAsBase64String = app.Invoke("GetListViewPageDataAsBase64String").ToString(); } return(ConverterHelpers.DeserializeObject <List <ListPageDataModel> >(listPageDataAsBase64String)); }
internal static List <ListPageDataModel> GetListPageData(IApp app) { string listPageDataAsBase64String; switch (app) { case iOSApp iosApp: listPageDataAsBase64String = iosApp.Invoke("getSerializedListViewPageData:", "").ToString(); break; case AndroidApp androidApp: listPageDataAsBase64String = androidApp.Invoke("GetSerializedListViewPageData").ToString(); break; default: throw new NotSupportedException("Platform Not Supported"); } return(ConverterHelpers.DeserializeObject <List <ListPageDataModel> >(listPageDataAsBase64String)); }