001/* 002 * (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * André Justo 016 */ 017 018package org.nuxeo.ecm.media.publishing.wistia.model; 019 020import org.codehaus.jackson.annotate.JsonIgnoreProperties; 021 022@JsonIgnoreProperties(ignoreUnknown = true) 023public class Thumbnail { 024 025 protected String url; 026 027 protected int width; 028 029 protected int height; 030 031 public String getUrl() { 032 return url; 033 } 034 035 public void setUrl(String url) { 036 this.url = url; 037 } 038 039 public int getWidth() { 040 return width; 041 } 042 043 public void setWidth(int width) { 044 this.width = width; 045 } 046 047 public int getHeight() { 048 return height; 049 } 050 051 public void setHeight(int height) { 052 this.height = height; 053 } 054 055 @Override 056 public String toString() { 057 return "--- Thumbnail info ---" + 058 "\nwidth: \t" + getWidth() + 059 "\nheight: \t" + getHeight() + 060 "\nurl: \t" + getUrl() + "\n"; 061 } 062}