Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
ResellerService nesneleri oluşturmak için Samsung ve Google fabrika sınıflarını kullanın.
ResellerService nesneleri, Samsung ve diğer Android cihazlar için hak talebinde bulunmak ve cihazları kaydettirmek üzere ortak bir yöntem grubu sağlar.
SamsungResellerServiceFactory
ResellerService nesnesi oluşturmak için SamsungResellerServiceFactory sınıfını kullanabilmek üzere KDP'ye kaydolmanız gerekir.
SamsungResellerServiceFactory sınıfını kullanarak ResellerService nesnesi oluşturma yöntemi imzası aşağıda verilmiştir:
KDP sistemi tarafından sağlanan bayinin benzersiz tanımlayıcısı.
serviceAccountKeyFilePath
string
Evet
Hizmet hesabı anahtarının dosya yolu.
clientIdentifier
string
Evet
KDP sistemi tarafından sağlanan istemci tanımlayıcısı.
Hata davranışı
Hata oluştuğunda kitaplık aşağıdaki hata kodlarından birini içeren bir CommonException oluşturur:
Hata kodu
INVALID_RESELLER_ID
AUTHORIZATION_FAIL
GoogleResellerServiceFactory
ResellerService nesnesi oluşturmak üzere GoogleResellerServiceFactory sınıfını kullanabilmeniz için öncelikle el değmeden kayıt özelliğini bayi olarak kabul etmeniz gerekir.
GoogleResellerServiceFactory sınıfını kullanarak ResellerService nesnesi oluşturma yöntemi imzası aşağıda verilmiştir:
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]