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

com.smartcar.sdk.data.ApplicationPermissions Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
package com.smartcar.sdk.data;

import java.util.Arrays;

/** POJO for Smartcar /permissions endpoint */
public class ApplicationPermissions extends ApiData {
  private ResponsePaging paging;
  private String[] permissions;

  /**
   * Initializes a new instance of ApplicationPermission
   *
   * @param paging metadata about the list of elements
   * @param permissions an array of permissions
   */
  public ApplicationPermissions(final ResponsePaging paging, final String[] permissions) {
    this.paging = paging;
    this.permissions = permissions;
  }

  /**
   * Returns the paging information of the response
   *
   * @return paging information of the response
   */
  public ResponsePaging getPaging() {
    return this.paging;
  }

  /**
   * Returns the application permissions
   *
   * @return application permissions
   */
  public String[] getPermissions() {
    return this.permissions;
  }

  /**
   * Stores the application permissions
   *
   * @param permissions application permissions
   */
  public void setPermissions(String[] permissions) {
    this.permissions = permissions;
  }

  @Override
  public String toString() {
    return this.getClass().getName()
        + "{"
        + "paging="
        + paging
        + ", permissions="
        + Arrays.toString(permissions)
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy