Codota Logo
WxMaUserInfo
Code IndexAdd Codota to your IDE (free)

How to use
WxMaUserInfo
in
cn.binarywang.wx.miniapp.bean

Best Java code snippets using cn.binarywang.wx.miniapp.bean.WxMaUserInfo (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: com.github.binarywang/weixin-java-miniapp

@Override
public WxMaUserInfo getUserInfo(String sessionKey, String encryptedData, String ivStr) {
 return WxMaUserInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr));
}
origin: yjjdick/sdb-mall

@Override
public User addMaUser(WxMaUserInfo wxMaUserInfo) {
  User user = new User();
  String userId = snService.generate(SnEnum.USER);
  user.setUserId(userId);
  user.setAvatar(wxMaUserInfo.getAvatarUrl());
  user.setMaOpenId(wxMaUserInfo.getOpenId());
  user.setNickname(wxMaUserInfo.getNickName());
  user.setGender(Integer.parseInt(wxMaUserInfo.getGender()));
  user.setUnionId(wxMaUserInfo.getUnionId());
  Language language = Language.getByEnumName(wxMaUserInfo.getLanguage());
  user.setLanguage((int)language.getValue());
  user.save();
  return user;
}
origin: binarywang/WxJava

@Override
public WxMaUserInfo getUserInfo(String sessionKey, String encryptedData, String ivStr) {
 return WxMaUserInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr));
}
cn.binarywang.wx.miniapp.beanWxMaUserInfo

Most used methods

  • fromJson
  • getAvatarUrl
  • getGender
  • getLanguage
  • getNickName
  • getOpenId
  • getUnionId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now