Subversion Repositories SmartDukaan

Rev

Rev 2257 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package in.shop2020.serving.controllers;

@SuppressWarnings("serial")
public class FblikeTestController extends BaseController {

    private String id;
    private String entityId;
    private String title;
    private String ogDesc;
    private String desc;
    
    public FblikeTestController()   {
        super();
    }
    
    public String show()   {
        System.out.println(id);
        
        if (id.equals("1"))    {
            this.entityId = "1001665";
            this.title = "Apple iPhone 4 16GB";
            this.ogDesc = "Best Price Apple iPhone 4 16GB . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
            this.desc = "iPhone 4 comes with a 3.5 inch capacitive touchscreen with multi-touch feature and Retina Display " 
                        + "that provides smooth and continuous text & graphic display. " 
                        + "The phone has 1GHz ARM Cortex A8 processor, iOS 4, and Safari browser. "
                        + "It has 5MP camera with LED flash, VGA secondary camera for video calling, and features such as geotagging "
                        + "and HD video recording. Other features include A-GPS with digital compass, access to multiple email accounts," 
                        + "11 customizable home screens, multitasking, and 16GB internal memory.";
        }
        else if (id.equals("2")) {
            this.entityId = "1000147";
            this.title = "Nokia N8";
            this.ogDesc = "Best Price Nokia   N8 . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
            this.desc = "Nokia N8 is a Symbian^3 phone with 12MP camera featuring Carl Zeiss optics and xenon flash. " 
                        + "The 3.5 inch AMOLED capacitive touchscreen of phone delivers better viewing experience. " 
                        + "It has Dolby Digital Plus technology for enhanced audio experience, video editing software, and on demand Web TV. "
                        + "Other features include pentaband 3G connectivity, Wi-Fi b/g/n, Bluetooth 3.0, A-GPS with digital compass, "
                        + "multiple email and IM accounts set-up, social networking widgets, Quickoffice app, and an expandable memory of up to 32GB. ";
        }
        else if (id.equals("3")) {
            this.entityId = "1000119";
            this.title = "HTC Desire A8181";
            this.ogDesc = "Best Price HTC Desire A8181 . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
            this.desc = "HTC Desire A8181 is an Android phone with 3.7 inch Super LCD screen for brighter display. " 
                        + "It has 3G and Wi-Fi connectivity. The phone comes with 5MP camera, LED flash, video recording, and geotagging app. " 
                        + "Other features include 1GHz Snapdragon processor, AGPS with digital compass, MS Office support, "
                        + "PDF file viewer, social networking apps, and 32GB expandable memory.";
        }
        else if (id.equals("4")) {
            this.entityId = "1001217";
            this.title = "Sony Ericsson Xperia Arc LT15i";
            this.ogDesc = "Best Price Sony Ericsson Xperia Arc LT15i . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
            this.desc = "Sony Ericsson Xperia Arc LT15i is a sleek touchscreen phone with Android Gingerbread OS. " 
                        + "It has a 4.2\" TFT LCD screen with LED backlighting and capacitive touch. " 
                        + "The phone has 8.1MP camera with LED flash, Sony Mobile Bravia Engine for enhanced video viewing experience, "
                        + "and HDMI connectivity support. It has 3G, Wi-Fi b/g/n, and Bluetooth connectivity. "
                        + "Other features include 1GHz processor, GPS/A-GPS, direct access to social networking sites, 3D games, and 32GB expandable memory.";
        }
        else if (id.equals("5")) {
            this.entityId = "1001674";
            this.title = "Samsung Galaxy S II I9100";
            this.ogDesc = "Best Price Samsung Galaxy S II I9100  . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
            this.desc = "Samsung Galaxy S II I9100 is an Android Gingerbread phone with 4.27 inch Super AMOLED Plus display. " 
                        + "It has 3G, Wi-Fi b/g/n connectivity and 1.2 GHz dual core processor. " 
                        + "The phone has 8MP primary camera with LED flash and 2MP secondary camera for video calling. "
                        + "Other features include TouchWiz UI 4.0, Adobe Flash 10.1 support, Social Hub, "
                        + "IM & email app, document viewer, and 32GB expandable memory" ;
        }
        return "show";
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getId()   {
        return this.id;
    }

    public String getEntityId() {
        return this.entityId;
    }

    public String getTitle()    {
        return this.title;
    }

    public String getOgDesc()   {
        return this.ogDesc;
    }

    public String getDesc() {
        return this.desc;
    }
}