Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add com.huawei.agconnectclouddb.objecttypes #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
* Generated by the CloudDB ObjectType compiler. DO NOT EDIT!
*/
package com.huawei.agconnectclouddb.objecttypes;

import com.huawei.agconnect.cloud.database.CloudDBZoneObject;
import com.huawei.agconnect.cloud.database.ObjectTypeInfo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
* Definition of ObjectType Helper.
*
* @since 2023-03-15
*/
public final class ObjectTypeInfoHelper {
private static final int FORMAT_VERSION = 2;
private static final int OBJECT_TYPE_VERSION = 25;

public static ObjectTypeInfo getObjectTypeInfo() {
ObjectTypeInfo objectTypeInfo = new ObjectTypeInfo();
objectTypeInfo.setFormatVersion(FORMAT_VERSION);
objectTypeInfo.setObjectTypeVersion(OBJECT_TYPE_VERSION);
List<Class<? extends CloudDBZoneObject>> objectTypeList = new ArrayList<>();
Collections.addAll(objectTypeList, UserPointLog.class, UserUsageLog.class, UserInfo.class, UserFeedback.class, UserPoint.class);
objectTypeInfo.setObjectTypes(objectTypeList);
return objectTypeInfo;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
* Generated by the CloudDB ObjectType compiler. DO NOT EDIT!
*/
package com.huawei.agconnectclouddb.objecttypes;

import com.huawei.agconnect.cloud.database.annotations.PrimaryKeys;
import com.huawei.agconnect.cloud.database.CloudDBZoneObject;
import com.huawei.agconnect.cloud.database.Text;

import java.util.Date;

/**
* Definition of ObjectType UserFeedback.
*
* @since 2023-03-15
*/
@PrimaryKeys({"uuid"})
public final class UserFeedback extends CloudDBZoneObject {
private String uuid;

private String userId;

private String category;

private Date createdAt;

private Date updatedAt;

private String desc;

public UserFeedback() {
super(UserFeedback.class);
}

public void setUuid(String uuid) {
this.uuid = uuid;
}

public String getUuid() {
return uuid;
}

public void setUserId(String userId) {
this.userId = userId;
}

public String getUserId() {
return userId;
}

public void setCategory(String category) {
this.category = category;
}

public String getCategory() {
return category;
}

public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}

public Date getCreatedAt() {
return createdAt;
}

public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}

public Date getUpdatedAt() {
return updatedAt;
}

public void setDesc(String desc) {
this.desc = desc;
}

public String getDesc() {
return desc;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
* Generated by the CloudDB ObjectType compiler. DO NOT EDIT!
*/
package com.huawei.agconnectclouddb.objecttypes;

import com.huawei.agconnect.cloud.database.annotations.PrimaryKeys;
import com.huawei.agconnect.cloud.database.CloudDBZoneObject;
import com.huawei.agconnect.cloud.database.Text;

import java.util.Date;

/**
* Definition of ObjectType UserInfo.
*
* @since 2023-03-15
*/
@PrimaryKeys({"userId"})
public final class UserInfo extends CloudDBZoneObject {
private String userId;

private String avatar;

private String nickname;

private String gender;

private Date birthday;

private String address;

private Date createdAt;

private Date updatedAt;

private String star;

public UserInfo() {
super(UserInfo.class);
}

public void setUserId(String userId) {
this.userId = userId;
}

public String getUserId() {
return userId;
}

public void setAvatar(String avatar) {
this.avatar = avatar;
}

public String getAvatar() {
return avatar;
}

public void setNickname(String nickname) {
this.nickname = nickname;
}

public String getNickname() {
return nickname;
}

public void setGender(String gender) {
this.gender = gender;
}

public String getGender() {
return gender;
}

public void setBirthday(Date birthday) {
this.birthday = birthday;
}

public Date getBirthday() {
return birthday;
}

public void setAddress(String address) {
this.address = address;
}

public String getAddress() {
return address;
}

public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}

public Date getCreatedAt() {
return createdAt;
}

public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}

public Date getUpdatedAt() {
return updatedAt;
}

public void setStar(String star) {
this.star = star;
}

public String getStar() {
return star;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
* Generated by the CloudDB ObjectType compiler. DO NOT EDIT!
*/
package com.huawei.agconnectclouddb.objecttypes;

import com.huawei.agconnect.cloud.database.annotations.PrimaryKeys;
import com.huawei.agconnect.cloud.database.CloudDBZoneObject;
import com.huawei.agconnect.cloud.database.Text;

import java.util.Date;

/**
* Definition of ObjectType UserPoint.
*
* @since 2023-03-15
*/
@PrimaryKeys({"userId"})
public final class UserPoint extends CloudDBZoneObject {
private String userId;

private Long point;

private Date updatedAt;

private Long days;

private String desc;

public UserPoint() {
super(UserPoint.class);
}

public void setUserId(String userId) {
this.userId = userId;
}

public String getUserId() {
return userId;
}

public void setPoint(Long point) {
this.point = point;
}

public Long getPoint() {
return point;
}

public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}

public Date getUpdatedAt() {
return updatedAt;
}

public void setDays(Long days) {
this.days = days;
}

public Long getDays() {
return days;
}

public void setDesc(String desc) {
this.desc = desc;
}

public String getDesc() {
return desc;
}

}
Loading