PrismLauncher/launcher/updater/prismupdater/GitHubRelease.h
Rachel Powers 5627b4a9c5 refactor: rename updater files
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-06-01 13:45:36 -07:00

35 lines
640 B
C

#pragma once
#include <QDateTime>
#include <QList>
#include <QString>
#include "Version.h"
struct GitHubReleaseAsset {
int id = -1;
QString name;
QString label;
QString content_type;
int size;
QDateTime created_at;
QDateTime updated_at;
QString browser_download_url;
bool isValid() { return id > 0; }
};
struct GitHubRelease {
int id = -1;
QString name;
QString tag_name;
QDateTime created_at;
QDateTime published_at;
bool prerelease;
bool draft;
QString body;
QList<GitHubReleaseAsset> assets;
Version version;
bool isValid() const { return id > 0; }
};