با مجموعهها، منظم بمانید
ذخیره و دستهبندی محتوا براساس اولویتهای شما.
از کلاس های کارخانه سامسونگ و گوگل برای ایجاد اشیاء ResellerService استفاده کنید. با اشیاء ResellerService ، مجموعهای از روشهای متداول برای ادعای مالکیت و ثبتنام سامسونگ و سایر دستگاههای Android در دسترس است.
SamsungResellerServiceFactory
قبل از اینکه بتوانید از کلاس SamsungResellerServiceFactory برای تولید یک شی ResellerService استفاده کنید، باید KDP را وارد کنید . در زیر امضای روش برای ایجاد یک شی ResellerService با استفاده از کلاس SamsungResellerServiceFactory آمده است:
تاریخ آخرین بهروزرسانی 2024-11-14 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2024-11-14 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]