Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Użyj klas fabrycznych Samsung i Google, aby utworzyć obiekty ResellerService.
Obiekty ResellerService udostępniają wspólny zestaw metod do zgłaszania i rejestracji urządzeń Samsung i innych urządzeń z Androidem.
SamsungResellerServiceFactory
Zanim użyjesz klasy SamsungResellerServiceFactory do wygenerowania obiektu ResellerService, musisz zalogować się w KDP.
Oto sygnatura metody służąca do tworzenia obiektu ResellerService za pomocą klasy SamsungResellerServiceFactory:
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-11-09 UTC."],[[["`ResellerService` objects, created using Samsung and Google factory classes, enable claiming and enrolling Samsung and other Android devices."],["The `SamsungResellerServiceFactory` requires onboarding with KDP and uses `resellerId`, `serviceAccountKeyFilePath`, and `clientIdentifier` to create a `ResellerService`."],["The `GoogleResellerServiceFactory` requires onboarding with zero-touch enrollment and uses `resellerId` and `serviceAccountKeyFilePath` to create a `ResellerService`."],["Both factories throw a `CommonException` when errors occur, with specific error codes like `INVALID_RESELLER_ID` and `AUTHORIZATION_FAIL` for Samsung and `INVALID_PARAM_DEFAULT` and `INTERNAL_SERVER_ERROR` for Google."]]],["`ResellerService` objects are created using `SamsungResellerServiceFactory` or `GoogleResellerServiceFactory` classes. Each factory requires onboarding as a reseller and uses a unique `resellerId` and `serviceAccountKeyFilePath`. Samsung's factory also needs a `clientIdentifier`. `ResellerService` objects offer methods for device management. Errors trigger a `CommonException` with specific codes, like `INVALID_RESELLER_ID` or `AUTHORIZATION_FAIL` for Samsung and `INVALID_PARAM_DEFAULT` or `INTERNAL_SERVER_ERROR` for Google.\n"]]