added created datetime
This commit is contained in:
parent
3ac7f4c611
commit
419cd98cba
2 changed files with 14 additions and 0 deletions
|
@ -342,6 +342,12 @@ void SnapmaticPicture::parseJsonContent()
|
|||
{
|
||||
jsonCrewID = jsonMap["crewid"].toInt();
|
||||
}
|
||||
if (jsonMap.contains("creat"))
|
||||
{
|
||||
QDateTime createdTimestamp;
|
||||
createdTimestamp.setTime_t(jsonMap["creat"].toUInt());
|
||||
jsonCreatedDateTime = createdTimestamp;
|
||||
}
|
||||
if (jsonMap.contains("plyrs"))
|
||||
{
|
||||
jsonPlyrsList = jsonMap["plyrs"].toStringList();
|
||||
|
@ -389,3 +395,8 @@ QStringList SnapmaticPicture::getPlayers()
|
|||
{
|
||||
return jsonPlyrsList;
|
||||
}
|
||||
|
||||
QDateTime SnapmaticPicture::getCreatedDateTime()
|
||||
{
|
||||
return jsonCreatedDateTime;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue