renamed set arguments
This commit is contained in:
Binary file not shown.
@@ -78,29 +78,29 @@ void Discord_Activity::coreupdate()
|
|||||||
::core->RunCallbacks();
|
::core->RunCallbacks();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Discord_Activity::set_app_id(const int64_t &appid)
|
void Discord_Activity::set_app_id(const int64_t &value)
|
||||||
{
|
{
|
||||||
app_id = appid;
|
app_id = value;
|
||||||
result = discord::Core::Create(app_id, DiscordCreateFlags_NoRequireDiscord, &core);
|
result = discord::Core::Create(value, DiscordCreateFlags_NoRequireDiscord, &core);
|
||||||
}
|
}
|
||||||
int64_t Discord_Activity::get_app_id() const
|
int64_t Discord_Activity::get_app_id() const
|
||||||
{
|
{
|
||||||
return app_id;
|
return app_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Discord_Activity::set_state(const String &pstate)
|
void Discord_Activity::set_state(const String &value)
|
||||||
{
|
{
|
||||||
state = pstate;
|
state = value;
|
||||||
activity.SetState(state.utf8().get_data());
|
activity.SetState(value.utf8().get_data());
|
||||||
}
|
}
|
||||||
String Discord_Activity::get_state() const
|
String Discord_Activity::get_state() const
|
||||||
{
|
{
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
void Discord_Activity::set_details(const String &detail)
|
void Discord_Activity::set_details(const String &value)
|
||||||
{
|
{
|
||||||
details = detail;
|
details = value;
|
||||||
activity.SetDetails(details.utf8().get_data());
|
activity.SetDetails(value.utf8().get_data());
|
||||||
}
|
}
|
||||||
String Discord_Activity::get_details() const
|
String Discord_Activity::get_details() const
|
||||||
{
|
{
|
||||||
@@ -112,37 +112,37 @@ void Discord_Activity::refresh()
|
|||||||
core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {});
|
core->ActivityManager().UpdateActivity(activity, [](discord::Result result) {});
|
||||||
}
|
}
|
||||||
|
|
||||||
void Discord_Activity::set_large_image(const String &p_large_image)
|
void Discord_Activity::set_large_image(const String &value)
|
||||||
{
|
{
|
||||||
large_image = p_large_image;
|
large_image = value;
|
||||||
activity.GetAssets().SetLargeImage(p_large_image.utf8().get_data());
|
activity.GetAssets().SetLargeImage(value.utf8().get_data());
|
||||||
}
|
}
|
||||||
String Discord_Activity::get_large_image() const
|
String Discord_Activity::get_large_image() const
|
||||||
{
|
{
|
||||||
return large_image;
|
return large_image;
|
||||||
}
|
}
|
||||||
void Discord_Activity::set_large_image_text(const String &p_large_image_text)
|
void Discord_Activity::set_large_image_text(const String &value)
|
||||||
{
|
{
|
||||||
large_image_text = p_large_image_text;
|
large_image_text = value;
|
||||||
activity.GetAssets().SetLargeText(p_large_image_text.utf8().get_data());
|
activity.GetAssets().SetLargeText(value.utf8().get_data());
|
||||||
}
|
}
|
||||||
String Discord_Activity::get_large_image_text() const
|
String Discord_Activity::get_large_image_text() const
|
||||||
{
|
{
|
||||||
return large_image_text;
|
return large_image_text;
|
||||||
}
|
}
|
||||||
void Discord_Activity::set_small_image(const String &p_small_image)
|
void Discord_Activity::set_small_image(const String &value)
|
||||||
{
|
{
|
||||||
small_image = p_small_image;
|
small_image = value;
|
||||||
activity.GetAssets().SetSmallImage(p_small_image.utf8().get_data());
|
activity.GetAssets().SetSmallImage(value.utf8().get_data());
|
||||||
}
|
}
|
||||||
String Discord_Activity::get_small_image() const
|
String Discord_Activity::get_small_image() const
|
||||||
{
|
{
|
||||||
return small_image;
|
return small_image;
|
||||||
}
|
}
|
||||||
void Discord_Activity::set_small_image_text(const String &p_small_image_text)
|
void Discord_Activity::set_small_image_text(const String &value)
|
||||||
{
|
{
|
||||||
small_image_text = p_small_image_text;
|
small_image_text = value;
|
||||||
activity.GetAssets().SetSmallText(p_small_image_text.utf8().get_data());
|
activity.GetAssets().SetSmallText(value.utf8().get_data());
|
||||||
}
|
}
|
||||||
String Discord_Activity::get_small_image_text() const
|
String Discord_Activity::get_small_image_text() const
|
||||||
{
|
{
|
||||||
|
@@ -37,20 +37,20 @@ public:
|
|||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
int64_t get_app_id() const;
|
int64_t get_app_id() const;
|
||||||
void set_app_id(const int64_t &p_app_id);
|
void set_app_id(const int64_t &value);
|
||||||
String get_state() const;
|
String get_state() const;
|
||||||
void set_state(const String &p_state);
|
void set_state(const String &value);
|
||||||
String get_details() const;
|
String get_details() const;
|
||||||
void set_details(const String &p_details);
|
void set_details(const String &value);
|
||||||
|
|
||||||
String get_large_image() const;
|
String get_large_image() const;
|
||||||
void set_large_image(const String &p_large_image);
|
void set_large_image(const String &value);
|
||||||
String get_large_image_text() const;
|
String get_large_image_text() const;
|
||||||
void set_large_image_text(const String &p_large_image_text);
|
void set_large_image_text(const String &value);
|
||||||
String get_small_image() const;
|
String get_small_image() const;
|
||||||
void set_small_image(const String &p_small_image);
|
void set_small_image(const String &value);
|
||||||
String get_small_image_text() const;
|
String get_small_image_text() const;
|
||||||
void set_small_image_text(const String &p_small_image_text);
|
void set_small_image_text(const String &value);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
Reference in New Issue
Block a user