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

com.kangaroohy.dingtalk.entity.args.base.ActionCardArgs Maven / Gradle / Ivy

The newest version!
package com.kangaroohy.dingtalk.entity.args.base;

import com.kangaroohy.dingtalk.entity.enums.BtnOrientation;

import java.util.Objects;

/**
 * 类 ActionCardArgs 功能描述:
* * @author kangaroo hy * @version 0.0.1 * @date 2022/06/29 14:26 */ public abstract class ActionCardArgs extends PcSlideArgs { private static final long serialVersionUID = 1468499489239170824L; /** * 按钮布局 */ protected BtnOrientation btnOrientation = BtnOrientation.VERTICAL; public BtnOrientation btnOrientation() { return btnOrientation; } public abstract static class Builder, A extends ActionCardArgs> extends PcSlideArgs.Builder { @SuppressWarnings("unchecked") public B btnOrientation(BtnOrientation btnOrientation) { operations.add(args -> args.btnOrientation = btnOrientation); return (B) this; } } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ActionCardArgs)) { return false; } if (!super.equals(o)) { return false; } ActionCardArgs that = (ActionCardArgs) o; return Objects.equals(btnOrientation, that.btnOrientation); } @Override public int hashCode() { return Objects.hash(super.hashCode(), btnOrientation); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy