Android Open Source - wally Image Page

From Project

Back to project page wally.


The source code is released under:

Apache License

If you think the Android project wally listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

 * Copyright (C) 2014 Freddie (Musenkishi) Lust-Hed
 *//from   ww w  . jav  a2s.  c o m
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.

package com.musenkishi.wally.models;

import android.os.Parcelable;

import java.util.ArrayList;

import auto.parcel.AutoParcel;

 * Contains all available data on an Image.
 * Created by Musenkishi on 2014-04-05 21:11.
public abstract class ImagePage implements Parcelable {

    public abstract String title();
    public abstract String imageId();
    public abstract Uri imagePath();
    public abstract String resolution();
    public abstract String category();
    public abstract String rating();
    public abstract String uploader();
    public abstract String uploadDate();
    public abstract Author author();
    /*public abstract ArrayList<Tag> tags();*/

    public static ImagePage create(String title, String imageId, Uri imagePath, String resolution, String category, String rating, String uploader, String uploadDate, Author author/*, ArrayList<Tag> tags*/) {
        return new AutoParcel_ImagePage(title, imageId, imagePath, resolution, category, rating, uploader, uploadDate, author/*, tags*/);

    public int getImageHeight() {
        String height = resolution().split("x")[1].trim();
        return Integer.parseInt(height);

    public int getImageWidth() {
        String width = resolution().split("x")[0].trim();
        return Integer.parseInt(width);

Java Source Code List