Subversion Repositories SmartDukaan

Rev

Rev 2830 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2830 Rev 3128
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
3
import in.shop2020.model.v1.user.UserCommunication;
3
import in.shop2020.model.v1.user.UserCommunication;
4
import in.shop2020.thrift.clients.UserContextServiceClient;
4
import in.shop2020.thrift.clients.UserClient;
5
 
5
 
6
import java.text.SimpleDateFormat;
6
import java.text.SimpleDateFormat;
7
import java.util.Date;
7
import java.util.Date;
8
import java.util.HashMap;
8
import java.util.HashMap;
9
import java.util.Map;
9
import java.util.Map;
Line 25... Line 25...
25
    public UserCommunicationInfoController(){
25
    public UserCommunicationInfoController(){
26
        super();
26
        super();
27
    }
27
    }
28
 
28
 
29
    public String index() throws Exception {
29
    public String index() throws Exception {
30
        UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
30
    	UserClient userServiceClient = new UserClient();
31
        in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
31
        in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
32
        
32
        
33
        UserCommunication comm = userClient.getUserCommunicationById(commId);
33
        UserCommunication comm = userClient.getUserCommunicationById(commId);
34
 
34
 
35
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
35
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
36
        sdf.setTimeZone(TimeZone.getTimeZone("IST"));
36
        sdf.setTimeZone(TimeZone.getTimeZone("IST"));