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

io.getlime.push.model.request.GetApplicationDetailRequest Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
/*
 * Copyright 2018 Wultra s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.getlime.push.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * Get application credentials entity detail request.
 *
 * @author Roman Strobl, [email protected]
 */
@Data
public class GetApplicationDetailRequest {

    /**
     * Application ID.
     */
    @NotBlank
    @Schema(description = "Application ID.")
    private String appId;

    /**
     * Whether to include iOS details.
     */
    @Schema(description = "Whether to include iOS details.")
    private boolean includeIos;

    /**
     * Whether to include Android details.
     */
    @Schema(description = "Whether to include Android details.")
    private boolean includeAndroid;

    /**
     * Whether to include Huawei details.
     */
    @Schema(description = "Whether to include Huawei details.")
    private boolean includeHuawei;

    /**
     * Default constructor.
     */
    public GetApplicationDetailRequest() {
    }

    /**
     * Constructor with application credentials entity ID.
     * @param appId Application credentials entity ID.
     */
    public GetApplicationDetailRequest(String appId) {
        this.appId = appId;
    }

    /**
     * Constructor with details.
     * @param appId Application credentials entity ID.
     * @param includeIos Whether to include iOS details.
     * @param includeAndroid Whether to include Android details.
     */
    public GetApplicationDetailRequest(String appId, boolean includeIos, boolean includeAndroid, boolean includeHuawei) {
        this.appId = appId;
        this.includeIos = includeIos;
        this.includeAndroid = includeAndroid;
        this.includeHuawei = includeHuawei;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy