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

me.chanjar.weixin.open.bean.ma.WxMaOpenTabBar Maven / Gradle / Ivy

The newest version!
package me.chanjar.weixin.open.bean.ma;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * tabBar对象
 *
 * @author yqx
 * created on  2018/9/13
 */
@Data
@NoArgsConstructor
public class WxMaOpenTabBar implements Serializable {
  @NonNull
  private String color;

  @NonNull
  private String selectedColor;

  @NonNull
  private String backgroundColor;

  private String borderStyle;

  @NonNull
  @SerializedName("list")
  private List tabList;

  private String position;

  /**
   * 添加tab
   *
   * @param text
   * @param pagePath
   */
  public void addTab(String text, String pagePath) {
    if (tabList == null)
      tabList = new ArrayList<>();
    tabList.add(new WxMaOpenTab(pagePath, text));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy