private void setSuccessStorePolyMaster(HttpResponseBundle _response) { string message = _response.getHttpResponseMessage().Content.ReadAsStringAsync().Result; //Console.WriteLine("sukses: " + _response.getJObject()); PolyMaster polyMaster = _response.getParsedObject <RootSinglePolyMaster>().data; getView().callMethod("successStore", polyMaster); }
// Start is called before the first frame update void Start() { PolyMaster pm = new PolyMaster(); PolyChild pc = new PolyChild(); pm.printData(); pc.printData(); Debug.Log("This is Polymorphism Main Class"); }
public async void editProcess(Button btn) { PolyMaster dataObject = btn.DataContext as PolyMaster; Console.WriteLine("index: " + dataObject.id); EditPolyMasterPage editPage = new EditPolyMasterPage(); editPage.idPolyMaster = dataObject.id; }
public async void deleteProcess(PolyMaster polyMaster) { ApiClient client = ApiAntrianSehat.getInstance().GetApiClient(); var request = new ApiRequestBuilder(); var req = request.buildHttpRequest() .setEndpoint("poly-master/" + polyMaster.id) .setRequestMethod(HttpMethod.Delete); client.setOnSuccessRequest(setViewSuccessDelete); client.setOnFailedRequest(setViewErrorDelete); var response = await client.sendRequest(request.getApiRequestBundle()); }