SMSPlugin.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:plugnative-cordova-sms 作者:
private JSONObject getJsonFromSmsMessage(SmsMessage sms) {
  JSONObject json = new JSONObject();
 try
  {
   json.put("address", sms.getOriginatingAddress());
   json.put("body", sms.getMessageBody());
   json.put("date_sent", sms.getTimestampMillis());
   json.put("date", System.currentTimeMillis());
   json.put("read", 0);
   json.put("seen", 0);
   json.put("status", sms.getStatus());
   json.put("type", 1);
   json.put("service_center", sms.getServiceCenterAddress());
  }
  catch (Exception e) {
    e.printStackTrace();
  }

  return json;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号