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

org.anyline.wechat.mp.entity.Menu Maven / Gradle / Ivy

There is a newer version: 8.7.2-20250110
Show newest version
package org.anyline.wechat.mp.entity;

import org.anyline.util.BeanUtil;

import java.util.ArrayList;
import java.util.List;

public class Menu {
    private String menuid;
    private MenuMatchrule matchrule;
    private List button = new ArrayList();
    public Menu addButton(MenuItem item){

        button.add(item);
        return this;
    }

    public Menu addButton(String type, String name, String key, String url){
        MenuItem item = new MenuItem(type, name, key, url);
        button.add(item);
        return this;
    }

    public MenuMatchrule getMatchrule() {
        return matchrule;
    }

    public String getMenuid() {
        return menuid;
    }

    public void setMenuid(String menuid) {
        this.menuid = menuid;
    }

    public void setMatchrule(MenuMatchrule matchrule) {
        this.matchrule = matchrule;
    }

    public List getButton() {
        return button;
    }

    public void setButton(List button) {
        this.button = button;
    }
    public String toJson(){
        return BeanUtil.object2json(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy