Mailspring/docs/AccountStore.html
2015-10-03 12:39:26 -07:00

74 lines
2 KiB
HTML

---
layout: docs
title: AccountStore
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/stores/account-store.coffee"
---
<h2>Summary</h2>
<div class="markdown-from-sourecode">
<p><p>The AccountStore listens to changes to the available accounts in
the database and exposes the currently active Account via <a href='#current'>current</a></p>
</p>
</div>
<ul>
</ul>
<h3>Instance Methods</h3>
<h4 id=items class="function-name">
items(<span class="args"></span>) <a href="#items" class="link"></a>
</h4>
<div class="function-description markdown-from-sourecode">
<p></p>
</div>
<strong>Returns</strong>
<table class="arguments">
<tr>
<th>Return Values</th>
</tr>
<tr><td class="markdown-from-sourecode"><p>Returns an <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/array'>Array</a> of <a href='account.html'>Account</a> objects</p>
</td></tr>
</table>
<h4 id=itemWithEmailAddress class="function-name">
itemWithEmailAddress(<span class="args"></span>) <a href="#itemWithEmailAddress" class="link"></a>
</h4>
<div class="function-description markdown-from-sourecode">
<p></p>
</div>
<strong>Returns</strong>
<table class="arguments">
<tr>
<th>Return Values</th>
</tr>
<tr><td class="markdown-from-sourecode"><p>Returns the <a href='account.html'>Account</a> for the given email address, or null.</p>
</td></tr>
</table>
<h4 id=current class="function-name">
current(<span class="args"></span>) <a href="#current" class="link"></a>
</h4>
<div class="function-description markdown-from-sourecode">
<p></p>
</div>
<strong>Returns</strong>
<table class="arguments">
<tr>
<th>Return Values</th>
</tr>
<tr><td class="markdown-from-sourecode"><p>Returns the currently active <a href='account.html'>Account</a>.</p>
</td></tr>
</table>