Skip to content

Commit

Permalink
Merge pull request #23 from praekelt/feature/issue-23-opt-out-api-imp…
Browse files Browse the repository at this point in the history
…lement-common-opt-out-store-interface

Opt Out API: Implement common opt out store interface
  • Loading branch information
TREVOR committed Jun 30, 2015
2 parents b48ac0a + 7321bae commit ba8e507
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Empty file.
20 changes: 20 additions & 0 deletions opt_out_http_api/store/interface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import zope.interface


class OptOutStore(zope.interface.Interface):

def get(address_type, address):
""" Retrieve the opt out for an address. """
pass

def put(address_type, address):
""" Store a record of an opt out for an address. """
pass

def delete(address_type, address):
""" Remove an opt out for an address. """
pass

def count():
""" Return the number of opt outs. """
pass

0 comments on commit ba8e507

Please sign in to comment.