react-native-priv-sdk
Version:
Official MyCover.ai SDK. Supercharge your product with MyCover AI Insurance offerings. Create embedded insurance offerings or full white label insurance applications that excite your customers.
27 lines (24 loc) • 1.02 kB
text/typescript
import { SdkResponseStatus } from '../utils/enums'; // Ensure correct import path
import { PolicyModel } from './PolicyModel'; // Ensure correct import path
import { InspectionModel } from './InspectionModel'; // Ensure correct import path
import { ClaimModel } from './ClaimModel'; // Ensure correct import path
export class SdkResponse {
status: SdkResponseStatus;
policyModel: PolicyModel | null;
inspection: InspectionModel | null;
claim: ClaimModel | null;
context: any; // Adjust type according to your context, e.g., if using a navigation context in React Native or another UI framework
constructor(data: {
status: SdkResponseStatus;
policyModel?: PolicyModel | null;
inspection?: InspectionModel | null;
claim?: ClaimModel | null;
context: any; // Adjust type here
}) {
this.status = data.status;
this.policyModel = data.policyModel || null;
this.inspection = data.inspection || null;
this.claim = data.claim || null;
this.context = data.context;
}
}