Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2257 varun.gupt 1
package in.shop2020.serving.controllers;
2
 
2457 chandransh 3
@SuppressWarnings("serial")
2257 varun.gupt 4
public class FblikeTestController extends BaseController {
5
 
6
    private String id;
7
    private String entityId;
8
    private String title;
9
    private String ogDesc;
10
    private String desc;
11
 
12
    public FblikeTestController()   {
13
        super();
14
    }
15
 
16
    public String show()   {
17
        System.out.println(id);
18
 
19
        if (id.equals("1"))    {
20
            this.entityId = "1001665";
21
            this.title = "Apple iPhone 4 16GB";
22
            this.ogDesc = "Best Price Apple iPhone 4 16GB . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
23
            this.desc = "iPhone 4 comes with a 3.5 inch capacitive touchscreen with multi-touch feature and Retina Display " 
24
                        + "that provides smooth and continuous text & graphic display. " 
25
                        + "The phone has 1GHz ARM Cortex A8 processor, iOS 4, and Safari browser. "
26
                        + "It has 5MP camera with LED flash, VGA secondary camera for video calling, and features such as geotagging "
27
                        + "and HD video recording. Other features include A-GPS with digital compass, access to multiple email accounts," 
28
                        + "11 customizable home screens, multitasking, and 16GB internal memory.";
29
        }
30
        else if (id.equals("2")) {
31
            this.entityId = "1000147";
32
            this.title = "Nokia N8";
33
            this.ogDesc = "Best Price Nokia   N8 . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
34
            this.desc = "Nokia N8 is a Symbian^3 phone with 12MP camera featuring Carl Zeiss optics and xenon flash. " 
35
                        + "The 3.5 inch AMOLED capacitive touchscreen of phone delivers better viewing experience. " 
36
                        + "It has Dolby Digital Plus technology for enhanced audio experience, video editing software, and on demand Web TV. "
37
                        + "Other features include pentaband 3G connectivity, Wi-Fi b/g/n, Bluetooth 3.0, A-GPS with digital compass, "
38
                        + "multiple email and IM accounts set-up, social networking widgets, Quickoffice app, and an expandable memory of up to 32GB. ";
39
        }
40
        else if (id.equals("3")) {
41
            this.entityId = "1000119";
42
            this.title = "HTC Desire A8181";
43
            this.ogDesc = "Best Price HTC Desire A8181 . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
44
            this.desc = "HTC Desire A8181 is an Android phone with 3.7 inch Super LCD screen for brighter display. " 
45
                        + "It has 3G and Wi-Fi connectivity. The phone comes with 5MP camera, LED flash, video recording, and geotagging app. " 
46
                        + "Other features include 1GHz Snapdragon processor, AGPS with digital compass, MS Office support, "
47
                        + "PDF file viewer, social networking apps, and 32GB expandable memory.";
48
        }
49
        else if (id.equals("4")) {
50
            this.entityId = "1001217";
51
            this.title = "Sony Ericsson Xperia Arc LT15i";
52
            this.ogDesc = "Best Price Sony Ericsson Xperia Arc LT15i . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
53
            this.desc = "Sony Ericsson Xperia Arc LT15i is a sleek touchscreen phone with Android Gingerbread OS. " 
54
                        + "It has a 4.2\" TFT LCD screen with LED backlighting and capacitive touch. " 
55
                        + "The phone has 8.1MP camera with LED flash, Sony Mobile Bravia Engine for enhanced video viewing experience, "
56
                        + "and HDMI connectivity support. It has 3G, Wi-Fi b/g/n, and Bluetooth connectivity. "
57
                        + "Other features include 1GHz processor, GPS/A-GPS, direct access to social networking sites, 3D games, and 32GB expandable memory.";
58
        }
59
        else if (id.equals("5")) {
60
            this.entityId = "1001674";
61
            this.title = "Samsung Galaxy S II I9100";
62
            this.ogDesc = "Best Price Samsung Galaxy S II I9100  . Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty. Comprehensive reviews.";
63
            this.desc = "Samsung Galaxy S II I9100 is an Android Gingerbread phone with 4.27 inch Super AMOLED Plus display. " 
64
                        + "It has 3G, Wi-Fi b/g/n connectivity and 1.2 GHz dual core processor. " 
65
                        + "The phone has 8MP primary camera with LED flash and 2MP secondary camera for video calling. "
66
                        + "Other features include TouchWiz UI 4.0, Adobe Flash 10.1 support, Social Hub, "
67
                        + "IM & email app, document viewer, and 32GB expandable memory" ;
68
        }
69
        return "show";
70
    }
71
 
72
    public void setId(String id) {
73
        this.id = id;
74
    }
75
 
76
    public String getId()   {
77
        return this.id;
78
    }
79
 
80
    public String getEntityId() {
81
        return this.entityId;
82
    }
83
 
84
    public String getTitle()    {
85
        return this.title;
86
    }
87
 
88
    public String getOgDesc()   {
89
        return this.ogDesc;
90
    }
91
 
92
    public String getDesc() {
93
        return this.desc;
94
    }
95
}