don't parse operation id (#112)
parent
c06edcf9b2
commit
0d2e697fa4
|
@ -28,7 +28,6 @@ class Operation {
|
||||||
QString name;
|
QString name;
|
||||||
int numUsers;
|
int numUsers;
|
||||||
OperationStatus status;
|
OperationStatus status;
|
||||||
qint64 id;
|
|
||||||
|
|
||||||
static Operation parseData(QByteArray data) {
|
static Operation parseData(QByteArray data) {
|
||||||
return parseJSONItem<Operation>(data, Operation::fromJson);
|
return parseJSONItem<Operation>(data, Operation::fromJson);
|
||||||
|
@ -57,7 +56,6 @@ class Operation {
|
||||||
o.name = obj["name"].toString();
|
o.name = obj["name"].toString();
|
||||||
o.numUsers = obj["numUsers"].toInt();
|
o.numUsers = obj["numUsers"].toInt();
|
||||||
o.status = static_cast<OperationStatus>(obj["status"].toInt());
|
o.status = static_cast<OperationStatus>(obj["status"].toInt());
|
||||||
o.id = obj["id"].toVariant().toLongLong();
|
|
||||||
|
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue