Project

General

Profile

Actions

Specification

Activity Diagram

Programming Guide

Jar version

version Description
1.0 Init

Jar File Download

Controller
Ginota
Mocean
Properties

properties file

  • messageControl.properties
  1. message.provider - 1(Ginota), 2(Mocean)
  2. otp.length - 4/6
  3. otp.valid.in.second - 60 ~ 3600 seconds

MessageService

message.controller.service.MessageService service = new message.controller.service.MessageService(); 

sendOtp

message.controller.bean.ResponseBean resultBean = service.sendOtp(Connection conn, message.controller.bean.RequestOTPBean bean);
  1. conn - Database connection.
  2. bean - RequestOTPBean object.
  • shopperRefNo
  • otpId - Auto setter
  • transactionCode
  • mobileTo
  • companyName - message.controller.constant.CommonConstant.COMPANY_NAME_*
  • projectName - COSWAY/eCosway/eCos2/Aces
  1. *resultBean * - ResponseBean object.
  • statusCode - 0(Success)
  • statucDescription
  • otpId - return this value when verify OTP.
  • serviceProvider - return this value when verify OTP.
  • requestId
  • messageId

verifyPin

message.controller.bean.ResponseBean resultBean = service.verifyPin(Connection conn, message.controller.bean.VerifyOtpBean verifyBean)
  1. conn - Database connection.
  2. verifyBean - VerifyOtpBean object.
  • pin
  • orderId - For recording purpose
  • companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
  • otpId - From Request Pin's resultBean
  • serviceProvider - From Request Pin's resultBean
  1. *resultBean * - ResponseBean object.
  • statusCode - 0(Success)
  • statucDescription
  • otpId
  • serviceProvider

sendSms

message.controller.bean.ResponseBean resultBean = service.sendSms(Connection conn, message.controller.bean.RequestSmsBean smsBean)
  1. conn - Database connection.
  2. smsBean - SmsBean object.
  • otpId - Auto setter
  • transactionCode
  • mobileTo
  • companyName - com.cosway.ginota.constant.CommonConstant.COMPANY_NAME_*
  • shopperRefNo
  • mobileFrom
  • content
  • ResponseUrl - For Delivery status update. (Mocean)
  1. *resultBean * - ResponseBean object.
  • statusCode - 0(Success)
  • statucDescription
  • otpId
  • serviceProvider
  • requestId
  • messageId
  • totalSms

Updated by Soh Keong over 1 year ago ยท 7 revisions