refactor: rename updater files
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
34
launcher/updater/prismupdater/GitHubRelease.h
Normal file
34
launcher/updater/prismupdater/GitHubRelease.h
Normal file
@ -0,0 +1,34 @@
|
||||
#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; }
|
||||
};
|
Reference in New Issue
Block a user