本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

101 行
2.1 KiB

/*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
* Generated by the CloudDB ObjectType compiler. DO NOT EDIT!
*/
package com.huawei.agc.clouddb.quickstart.model;
import com.huawei.agconnect.cloud.database.CloudDBZoneObject;
import com.huawei.agconnect.cloud.database.annotations.DefaultValue;
import com.huawei.agconnect.cloud.database.Text;
import com.huawei.agconnect.cloud.database.annotations.NotNull;
import com.huawei.agconnect.cloud.database.annotations.Indexes;
import com.huawei.agconnect.cloud.database.annotations.PrimaryKeys;
import java.util.Date;
/**
* Definition of ObjectType BookInfo.
*
* @since 2021-01-28
*/
@PrimaryKeys({"id"})
@Indexes({"bookName:bookName"})
public class BookInfo extends CloudDBZoneObject {
private Integer id;
private String bookName;
private String author;
private Double price;
private String publisher;
private Date publishTime;
@DefaultValue(booleanValue = true)
private Boolean shadowFlag;
public BookInfo() {
super(BookInfo.class);
this.shadowFlag = true;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
public void setBookName(String bookName) {
this.bookName = bookName;
}
public String getBookName() {
return bookName;
}
public void setAuthor(String author) {
this.author = author;
}
public String getAuthor() {
return author;
}
public void setPrice(Double price) {
this.price = price;
}
public Double getPrice() {
return price;
}
public void setPublisher(String publisher) {
this.publisher = publisher;
}
public String getPublisher() {
return publisher;
}
public void setPublishTime(Date publishTime) {
this.publishTime = publishTime;
}
public Date getPublishTime() {
return publishTime;
}
public void setShadowFlag(Boolean shadowFlag) {
this.shadowFlag = shadowFlag;
}
public Boolean getShadowFlag() {
return shadowFlag;
}
}