|
@@ -22,7 +22,8 @@ struct GenericTask FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
VT_MASK = 14,
|
|
VT_MASK = 14,
|
|
VT_HEADER = 16,
|
|
VT_HEADER = 16,
|
|
VT_USER = 18,
|
|
VT_USER = 18,
|
|
- VT_RECURRING = 20
|
|
|
|
|
|
+ VT_RECURRING = 20,
|
|
|
|
+ VT_NOTIFY = 22
|
|
};
|
|
};
|
|
int32_t id() const {
|
|
int32_t id() const {
|
|
return GetField<int32_t>(VT_ID, 0);
|
|
return GetField<int32_t>(VT_ID, 0);
|
|
@@ -51,6 +52,9 @@ struct GenericTask FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
int32_t recurring() const {
|
|
int32_t recurring() const {
|
|
return GetField<int32_t>(VT_RECURRING, 0);
|
|
return GetField<int32_t>(VT_RECURRING, 0);
|
|
}
|
|
}
|
|
|
|
+ bool notify() const {
|
|
|
|
+ return GetField<uint8_t>(VT_NOTIFY, 0) != 0;
|
|
|
|
+ }
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
return VerifyTableStart(verifier) &&
|
|
return VerifyTableStart(verifier) &&
|
|
VerifyField<int32_t>(verifier, VT_ID) &&
|
|
VerifyField<int32_t>(verifier, VT_ID) &&
|
|
@@ -67,6 +71,7 @@ struct GenericTask FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
VerifyOffset(verifier, VT_USER) &&
|
|
VerifyOffset(verifier, VT_USER) &&
|
|
verifier.VerifyString(user()) &&
|
|
verifier.VerifyString(user()) &&
|
|
VerifyField<int32_t>(verifier, VT_RECURRING) &&
|
|
VerifyField<int32_t>(verifier, VT_RECURRING) &&
|
|
|
|
+ VerifyField<uint8_t>(verifier, VT_NOTIFY) &&
|
|
verifier.EndTable();
|
|
verifier.EndTable();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -102,6 +107,9 @@ struct GenericTaskBuilder {
|
|
void add_recurring(int32_t recurring) {
|
|
void add_recurring(int32_t recurring) {
|
|
fbb_.AddElement<int32_t>(GenericTask::VT_RECURRING, recurring, 0);
|
|
fbb_.AddElement<int32_t>(GenericTask::VT_RECURRING, recurring, 0);
|
|
}
|
|
}
|
|
|
|
+ void add_notify(bool notify) {
|
|
|
|
+ fbb_.AddElement<uint8_t>(GenericTask::VT_NOTIFY, static_cast<uint8_t>(notify), 0);
|
|
|
|
+ }
|
|
explicit GenericTaskBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
explicit GenericTaskBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
: fbb_(_fbb) {
|
|
: fbb_(_fbb) {
|
|
start_ = fbb_.StartTable();
|
|
start_ = fbb_.StartTable();
|
|
@@ -124,7 +132,8 @@ inline flatbuffers::Offset<GenericTask> CreateGenericTask(
|
|
int32_t mask = 0,
|
|
int32_t mask = 0,
|
|
flatbuffers::Offset<flatbuffers::String> header = 0,
|
|
flatbuffers::Offset<flatbuffers::String> header = 0,
|
|
flatbuffers::Offset<flatbuffers::String> user = 0,
|
|
flatbuffers::Offset<flatbuffers::String> user = 0,
|
|
- int32_t recurring = 0) {
|
|
|
|
|
|
+ int32_t recurring = 0,
|
|
|
|
+ bool notify = false) {
|
|
GenericTaskBuilder builder_(_fbb);
|
|
GenericTaskBuilder builder_(_fbb);
|
|
builder_.add_recurring(recurring);
|
|
builder_.add_recurring(recurring);
|
|
builder_.add_user(user);
|
|
builder_.add_user(user);
|
|
@@ -134,6 +143,7 @@ inline flatbuffers::Offset<GenericTask> CreateGenericTask(
|
|
builder_.add_time(time);
|
|
builder_.add_time(time);
|
|
builder_.add_file_info(file_info);
|
|
builder_.add_file_info(file_info);
|
|
builder_.add_id(id);
|
|
builder_.add_id(id);
|
|
|
|
+ builder_.add_notify(notify);
|
|
builder_.add_is_video(is_video);
|
|
builder_.add_is_video(is_video);
|
|
return builder_.Finish();
|
|
return builder_.Finish();
|
|
}
|
|
}
|
|
@@ -148,7 +158,8 @@ inline flatbuffers::Offset<GenericTask> CreateGenericTaskDirect(
|
|
int32_t mask = 0,
|
|
int32_t mask = 0,
|
|
const char *header = nullptr,
|
|
const char *header = nullptr,
|
|
const char *user = nullptr,
|
|
const char *user = nullptr,
|
|
- int32_t recurring = 0) {
|
|
|
|
|
|
+ int32_t recurring = 0,
|
|
|
|
+ bool notify = false) {
|
|
auto file_info__ = file_info ? _fbb.CreateString(file_info) : 0;
|
|
auto file_info__ = file_info ? _fbb.CreateString(file_info) : 0;
|
|
auto time__ = time ? _fbb.CreateString(time) : 0;
|
|
auto time__ = time ? _fbb.CreateString(time) : 0;
|
|
auto description__ = description ? _fbb.CreateString(description) : 0;
|
|
auto description__ = description ? _fbb.CreateString(description) : 0;
|
|
@@ -164,7 +175,8 @@ inline flatbuffers::Offset<GenericTask> CreateGenericTaskDirect(
|
|
mask,
|
|
mask,
|
|
header__,
|
|
header__,
|
|
user__,
|
|
user__,
|
|
- recurring);
|
|
|
|
|
|
+ recurring,
|
|
|
|
+ notify);
|
|
}
|
|
}
|
|
|
|
|
|
inline const GenericData::GenericTask *GetGenericTask(const void *buf) {
|
|
inline const GenericData::GenericTask *GetGenericTask(const void *buf) {
|