mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 11:39:14 +00:00
235 lines
11 KiB
HTML
235 lines
11 KiB
HTML
<!doctype html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta name="generator" content="JSDoc 3.6.3">
|
|
<meta charset="utf-8">
|
|
<title>whatsapp-web.js 1.1.0 » Class: PrivateContact</title>
|
|
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
|
|
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
|
|
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
|
<link href="css/baseline.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body onload="prettyPrint()">
|
|
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
|
<div id="jsdoc-navbar-container">
|
|
<div id="jsdoc-navbar-content">
|
|
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>1.<wbr>0</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div id="jsdoc-body-container">
|
|
<div id="jsdoc-content">
|
|
<div id="jsdoc-content-container">
|
|
<div id="jsdoc-main" role="main">
|
|
<header class="page-header">
|
|
<div class="symbol-detail-labels"><span class="label label-kind">class</span></div>
|
|
<h1><small></small><span class="symbol-name">PrivateContact</span></h1>
|
|
<p class="source-link">Source: <a href="structures_PrivateContact.js.html#source-line-9">structures/<wbr>PrivateContact.<wbr>js:9</a></p>
|
|
<div class="symbol-classdesc">
|
|
<p>Represents a Private Contact on WhatsApp</p>
|
|
</div>
|
|
<dl class="dl-compact">
|
|
</dl>
|
|
</header>
|
|
<section id="summary">
|
|
<div class="summary-callout">
|
|
<h2 class="summary-callout-heading">Properties</h2>
|
|
<div class="summary-content">
|
|
<div class="summary-column">
|
|
<dl class="dl-summary-callout">
|
|
<dt><a href="PrivateContact.html#id">id</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#isBusiness">isBusiness</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#isEnterprise">isEnterprise</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#isGroup">isGroup</a></dt>
|
|
<dd>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="summary-column">
|
|
<dl class="dl-summary-callout">
|
|
<dt><a href="PrivateContact.html#isMe">isMe</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#isMyContact">isMyContact</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#isUser">isUser</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#isWAContact">isWAContact</a></dt>
|
|
<dd>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="summary-column">
|
|
<dl class="dl-summary-callout">
|
|
<dt><a href="PrivateContact.html#name">name</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#number">number</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#pushname">pushname</a></dt>
|
|
<dd>
|
|
</dd>
|
|
<dt><a href="PrivateContact.html#shortName">shortName</a></dt>
|
|
<dd>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="summary-callout">
|
|
<h2 class="summary-callout-heading">Method</h2>
|
|
<div class="summary-content">
|
|
<div class="summary-column">
|
|
<dl class="dl-summary-callout">
|
|
<dt><a href="PrivateContact.html#getProfilePicUrl">getProfilePicUrl()</a></dt>
|
|
<dd>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="summary-column">
|
|
</div>
|
|
<div class="summary-column">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<h2 id="PrivateContact">new <span class="symbol-name">PrivateContact</span><span class="signature"><span class="signature-params">()</span></span></h2>
|
|
<dl class="dl-compact">
|
|
<dt>Extends</dt>
|
|
<dd><a href="Contact.html">Contact</a></dd>
|
|
</dl>
|
|
</section>
|
|
<section>
|
|
<h2>Properties</h2>
|
|
<section>
|
|
<h3 id="id"><span class="symbol-name">id</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>ID that represents the contact</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#id">Contact#id</a></dd>
|
|
</dl>
|
|
<h3 id="isBusiness"><span class="symbol-name">isBusiness</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the contact is a business contact</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isBusiness">Contact#isBusiness</a></dd>
|
|
</dl>
|
|
<h3 id="isEnterprise"><span class="symbol-name">isEnterprise</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the contact is an enterprise contact</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isEnterprise">Contact#isEnterprise</a></dd>
|
|
</dl>
|
|
<h3 id="isGroup"><span class="symbol-name">isGroup</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the contact is a group contact</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isGroup">Contact#isGroup</a></dd>
|
|
</dl>
|
|
<h3 id="isMe"><span class="symbol-name">isMe</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the contact is the current user's contact</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isMe">Contact#isMe</a></dd>
|
|
</dl>
|
|
<h3 id="isMyContact"><span class="symbol-name">isMyContact</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the number is saved in the current phone's contacts</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isMyContact">Contact#isMyContact</a></dd>
|
|
</dl>
|
|
<h3 id="isUser"><span class="symbol-name">isUser</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the contact is a user contact</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isUser">Contact#isUser</a></dd>
|
|
</dl>
|
|
<h3 id="isWAContact"><span class="symbol-name">isWAContact</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Indicates if the number is registered on WhatsApp</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#isWAContact">Contact#isWAContact</a></dd>
|
|
</dl>
|
|
<h3 id="name"><span class="symbol-name">name</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>The contact's name, as saved by the current user</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#name">Contact#name</a></dd>
|
|
</dl>
|
|
<h3 id="number"><span class="symbol-name">number</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>Contact's phone number</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#number">Contact#number</a></dd>
|
|
</dl>
|
|
<h3 id="pushname"><span class="symbol-name">pushname</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>The name that the contact has configured to be shown publically</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#pushname">Contact#pushname</a></dd>
|
|
</dl>
|
|
<h3 id="shortName"><span class="symbol-name">shortName</span><small class="property-type">
|
|
unknown</small></h3>
|
|
<p>A shortened version of name</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#shortName">Contact#shortName</a></dd>
|
|
</dl>
|
|
</section>
|
|
<h2>Method</h2>
|
|
<section>
|
|
<div class="symbol-detail-labels"><span class="label label-async">async</span></div>
|
|
<h3 id="getProfilePicUrl"><span class="symbol-name">getProfilePicUrl</span><span class="signature"><span class="signature-params">()</span> → <span class="signature-returns"> Promise containing string</span></span></h3>
|
|
<p>Returns the contact's profile picture URL, if privacy settings allow it</p>
|
|
<dl class="dl-compact">
|
|
<dt>Inherited from</dt>
|
|
<dd><a href="Contact.html#getProfilePicUrl">Contact#getProfilePicUrl</a></dd>
|
|
<dt>Returns</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
</section>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<nav id="jsdoc-toc-nav" role="navigation"></nav>
|
|
</div>
|
|
</div>
|
|
<footer id="jsdoc-footer" class="jsdoc-footer">
|
|
<div id="jsdoc-footer-container">
|
|
<p>
|
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.3 on February 26, 2020.
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
<script src="scripts/jquery.min.js"></script>
|
|
<script src="scripts/tree.jquery.js"></script>
|
|
<script src="scripts/prettify.js"></script>
|
|
<script src="scripts/jsdoc-toc.js"></script>
|
|
<script src="scripts/linenumber.js"></script>
|
|
<script src="scripts/scrollanchor.js"></script>
|
|
</body>
|
|
|
|
</html> |