add Snowflake ctor for Glib::ustring

This commit is contained in:
ouwou
2020-10-29 02:00:50 -04:00
parent c9162544f6
commit dfc2fb1cd8
2 changed files with 8 additions and 1 deletions

View File

@@ -1,11 +1,13 @@
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
#include <glibmm/ustring.h>
struct Snowflake {
Snowflake();
Snowflake(uint64_t n);
Snowflake(const std::string &str);
Snowflake(const Glib::ustring &str);
bool IsValid() const;