How to use the wechaty-puppet.ContactGender.Male function in wechaty-puppet

To help you get started, we’ve selected a few wechaty-puppet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wechaty / wechaty-puppet-padplus / src / pure-function-helpers / contact-raw-payload-parser.spec.ts View on Github external
remark               : '',
    sex                  : 2,
    signature            : '',
    smallHeadUrl         : 'http://wx.qlogo.cn/mmhead/ver_1/icxUZE0qz1c1HubRfXHscMA1PialA7q3OEIWiaRtUjYmpj2EDFhTNGwlicUFe1NQR67gVGgjhILV1ZTsZ1qO3XTMehhH1k6icF1adbaibUMJXbMWk/132',
    stranger             : 'v1_xxx',
    ticket               : '',
    userName             : 'wxid_v7j3e9kna9l912',
    verifyFlag           : 0,
  }

  const EXPECTED_CONTACT_PAYLOAD_PERSONAL: ContactPayload = {
    alias     : '',
    avatar    : 'http://wx.qlogo.cn/mmhead/KDLS0fhbCTJ0H7wsWRiaeMdibHvaeoZw1jQScfCqfVaPM/132',
    city      : 'Haidian',
    friend    : true,
    gender    : ContactGender.Male,
    id        : 'lylezhuifeng',
    name      : '高原ོ',
    province  : 'Beijing',
    signature : '',
    type      : ContactType.Personal,
    weixin    : 'lylezhuifeng',
  }

  const EXPECTED_CONTACT_PAYLOAD_OFFICIAL: ContactPayload = {
    alias     : '',
    avatar    : 'http://wx.qlogo.cn/mmhead/ver_1/icxUZE0qz1c1HubRfXHscMA1PialA7q3OEIWiaRtUjYmpj2EDFhTNGwlicUFe1NQR67gVGgjhILV1ZTsZ1qO3XTMehhH1k6icF1adbaibUMJXbMWk/132',
    city      : 'Fengtai',
    friend    : true,
    gender    : ContactGender.Female,
    id        : 'wxid_v7j3e9kna9l912',
    name      : '李青青',