@trycourier/courier-react-native
Version:
Inbox, Push Notifications, and Preferences for React Native
18 lines (17 loc) • 591 B
JavaScript
import { Modules } from "../Modules";
export class BrandClient {
constructor(clientId) {
this.clientId = clientId;
}
/**
* Retrieves brand information for a specific brand ID.
* @param props - The properties for getting the brand.
* @param props.brandId - The ID of the brand to retrieve.
* @returns A promise that resolves with the CourierBrandResponse containing brand information.
*/
async getBrand(props) {
const json = await Modules.Client.getBrand(this.clientId, props.brandId);
return JSON.parse(json);
}
}
//# sourceMappingURL=BrandClient.js.map