All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vk.api.sdk.objects.board.GetTopicsOrder Maven / Gradle / Ivy

Go to download

Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.

There is a newer version: 1.0.16
Show newest version
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.board;

import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.queries.EnumParam;

/**
 * Sort order: '1' — by date updated in reverse chronological order. '2' — by date created in reverse chronological order. '-1' — by date updated in chronological order. '-2' — by date created in chronological order. If no sort order is specified, topics are returned in the order specified by the group administrator. Pinned topics are returned first, regardless of the sorting.
 */
public enum GetTopicsOrder implements EnumParam {
    @SerializedName("1")
    UPDATED_DESC(1),

    @SerializedName("2")
    CREATED_DESC(2),

    @SerializedName("-1")
    UPDATED_ASC(-1),

    @SerializedName("-2")
    CREATED_ASC(-2),

    @SerializedName("0")
    AS_BY_ADMINISTRATOR(0);

    private final Integer value;

    GetTopicsOrder(Integer value) {
        this.value = value;
    }

    public String getValue() {
        return value.toString();
    }

    @Override
    public String toString() {
        return value.toString().toLowerCase();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy