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

com.shopify.model.Image Maven / Gradle / Ivy

There is a newer version: 2.9.3
Show newest version
package com.shopify.model;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.shopify.model.adapters.EscapedStringAdapter;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Image {

	private String id;
	@XmlElement(name = "product_id")
	private String productId;
	@XmlJavaTypeAdapter(EscapedStringAdapter.class)
	private String name;
	private int position;
	@XmlElement(name = "src")
	private String source;
	@XmlElement(name = "variant_ids")
	private List variantIds = new LinkedList<>();
	private List metafields = new LinkedList<>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public List getVariantIds() {
		return variantIds;
	}

	public void setVariantIds(List variantIds) {
		this.variantIds = variantIds;
	}

	public List getMetafields() {
		return metafields;
	}

	public void setMetafields(List metafields) {
		this.metafields = metafields;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy