Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mundodescuento.model.response.form;
- import android.view.LayoutInflater;
- import android.view.View;
- import android.view.ViewGroup;
- import com.google.gson.annotations.SerializedName;
- public class FormResponseDataTemplatefieldsLeadfield {
- @SerializedName("creted_at")
- private String createdAt;
- private String datatype;
- private int id;
- private String key;
- private String name;
- @SerializedName("updated_at")
- private String updatedAt;
- private LeadFormFieldType typePosta;
- protected LeadFormFieldType getType() {
- if (typePosta == null) {
- typePosta = LeadFormFieldType.buildFromType(this);
- }
- return typePosta;
- }
- public View inflateView(LayoutInflater inflater, ViewGroup root) {
- return getType().inflateView(inflater, root);
- }
- public String getInsertedValue() {
- return getType().getInsertedValue();
- }
- public boolean isValid() {
- return getType().isValid();
- }
- public void showValidationError() {
- LeadFormFieldType type = getType();
- if (type.hasError()) {
- type.showValidationError();
- } else {
- type.hideError();
- }
- }
- public boolean hasErrors() {
- return getType().hasError();
- }
- public String getDataType() {
- return datatype;
- }
- public LeadFormField.FieldOption[] getOptions() {
- return new LeadFormField.FieldOption[0];
- }
- public String getLabel() {
- return name;
- }
- public boolean isRequired() {
- return false;
- }
- public String getKey() {
- return key;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement