This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Comments (C compatible)
Ahmed Castro edited this page Aug 24, 2018
·
3 revisions
void modioGetAllModComments(void* object, u32 mod_id, ModioFilterCreator filter, void (*callback)(void* object, ModioResponse response, ModioComment comments[], u32 comments_size));
Wrapped by: Comments#modiogetallmodcomments
API endpoint used: Get All Mod Comments
et all comments posted in the mods profile, can be filtered using the ModioFilterCreator.
Name | Type | Description |
---|---|---|
object | void* |
Context parameter. |
mod_id | u32 |
Unique id of the mod. |
filter | ModioFilterCreator* |
ModioFilterCreator object to be customized. |
callback | void (*callback)(void* object, ModioResponse response, ModioComment comments[], u32 comments_size) |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
object | void* |
Context parameter. |
response | ModioResponse |
ModioResponse object that contains the mod.io response status. |
comments | ModioComment* |
ModioComment array containing the returned comments. |
comments_size | u32 |
Comments array size. |
void onGetAllModComments(void* object, ModioResponse response, ModioComment comments[], u32 comments_size)
{
if(response.code == 200)
{
//Comments retrieved successfully
}
}
[...]
ModioFilterCreator filter;
modioInitFilter(&filter);
modioSetFilterLimit(&filter,3);
modioGetAllModComments(NULL, mod_id, filter, &onGetAllModComments);
void modioGetModComment(void* object, u32 mod_id, u32 comment_id, void (*callback)(void* object, ModioResponse response, ModioComment comment));
Wrapped by: Mods#getmodcomment
API endpoint used: Get Mod
Get a comment by providing its id.
Name | Type | Description |
---|---|---|
object | void* |
Context parameter. |
mod_id | u32 |
Mod's unique id. |
comment_id | u32 |
Comment's unique id. |
callback | void (*callback)(void* object, ModioResponse response, ModioComment comment) |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
object | void* |
Context parameter. |
response | ModioResponse |
ModioResponse object that contains the mod.io response status. |
comment | ModioComment |
ModioComment object returned. |
void onGetModComment(void* object, ModioResponse response, ModioComment comment)
{
if(response.code == 200)
{
//Comment retrieved successfully
}
}
[...]
modioGetMod(NULL, mod_id, comment, &onGetModComment);
void modioDeleteModComment(void* object, u32 mod_id, u32 comment_id, void(*callback)(void* object, ModioResponse response));
Wrapped by: Comments#modiodeletemodcomment
API endpoint used: Delete Mod Comment
Delete a comment from a mod profile.
Name | Type | Description |
---|---|---|
object | void* |
Context parameter. |
mod_id | u32 |
Unique id of the mod. |
comment_id | u32 |
Unique id of the comment. |
callback | void(*callback)(void* object, ModioResponse response) |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
object | void* |
Context parameter. |
response | ModioResponse |
ModioResponse object that contains the mod.io response status. |
void onDeleteModComment(void* object, ModioResponse response)
{
if(response.code == 200)
{
//Comment successfully deleted
}
}
[...]
modioDeleteModComment(NULL, mod_id, comment_id, &onDeleteModComment);
- Home
- Table of Contents
- Getting Started
- SDK Methods
- Creators
- Editors
- Schemas
- modio::Avatar
- modio::Comment
- modio::Dependency
- modio::Download
- modio::Error
- modio::Filehash
- modio::Game
- modio::GameTagOption
- modio::Header
- modio::Icon
- modio::Image
- modio::InstalledMod
- modio::Logo
- modio::Media
- modio::MetadataKVP
- modio::Mod
- modio::ModEvent
- modio::Modfile
- modio::QueuedModDownload
- modio::QueuedModfileUpload
- modio::Rating
- modio::Response
- modio::Stats
- modio::Tag
- modio::User
- Debugging
- Constants
-
C Compatibility
- Methods
- Initialization, Process and Shutdown (C compatible)
- User Authentication (C compatible)
- Mods (C compatible)
- Modfiles (C compatible)
- Media (C compatible)
- Subscriptions (C compatible)
- Events (C compatible)
- Stats (C compatible)
- Tags (C compatible)
- Ratings (C compatible)
- Metadata KVP (C compatible)
- Dependencies (C compatible)
- Comments (C compatible)
- Reports (C compatible)
- Me (C compatible)
- Downloads (C compatible)
- Uploads (C compatible)
- Logs (C compatible)
- External Auth (C compatible)
- Configuration (C compatible)
- Creators
- Editors
- Schemas
- ModioAvatar
- ModioComment
- ModioDependency
- ModioDownload
- ModioError
- ModioFilehash
- ModioGame
- ModioGameTagOption
- ModioHeader
- ModioIcon
- ModioImage
- ModioInstalledMod
- ModioListNode
- ModioLogo
- ModioMedia
- ModioMetadataKVP
- ModioMod
- ModioModEvent
- ModioModfile
- ModioQueuedModDownload
- ModioQueuedModfileUpload
- ModioRating
- ModioResponse
- ModioStats
- ModioTag
- ModioUser
- Methods
- Building