Coder Social home page Coder Social logo

alert-notification-sdk's People

Contributors

kweinmeister avatar rolivieri avatar tfrank64 avatar thesounddefense avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

seabaylea

alert-notification-sdk's Issues

README

  • Add details about the API for the SDK to the README.
  • Add relevant documentation to the README and links to the Alert Notification service.
  • Add Travis CI build badges to the README.
  • Add OS (masOS and Linux) badges to the README.

A few refactoring items

  • Avoid force unwrapping variables. For instance, the following:
 if callback != nil {
   callback!(...)

can be rewritten as:

 callback?(...)

This is applicable to other places in the code such as:

Alert(data: data!)

We can instead have Alert(data: data) inside a block that looks like this if let data = data { }

  • Let's make the code more Swifty-like. Instead of the following:
 if error != nil {...}

let's rewrite it as:

 if let error = error {...}

This is applicable to other cases in the code such as:

 if data == nil { ... }
  • If the values passed as arguments to the constructor of Message are not valid, let's raise an error.

  • Let's rename ServerCredentials to AlertServiceCredentials.

  • Would it make sense to make the createSession() method as an extension to URLSession?

  • Would it make sense to define AlertURL, Detail, Severity, AlertStatus, and NotificationState as an inner entities inside the Alert class? These entities seem to exist and have meaning only within the context of Alert. Also, if we make AlertStatus an inner entity of Alert, we can then just rename it to Status (same is probably true about AlertURL).

Add Travis CI support to SDK (use Package-Builder).

@TheSoundDefense For this task, please reach out to @BDHernand. He can provide you with the necessary guidance to complete the necessary steps.

  • Add travis ci badge to README (develop and master).
  • Add OS badges
  • Add travis.yml

As reference

[![Build Status - Develop](https://travis-ci.org/IBM-Swift/Swift-cfenv.svg?branch=develop)](https://travis-ci.org/IBM-Swift/Swift-cfenv)
![macOS](https://img.shields.io/badge/os-macOS-green.svg?style=flat)
![Linux](https://img.shields.io/badge/os-linux-green.svg?style=flat)

More references:
https://raw.githubusercontent.com/IBM-Swift/Swift-cfenv/master/README.md
https://github.com/IBM-Swift/Swift-cfenv/blob/master/README.md

Create a develop branch

Once the first milestone is completed, clone the master branch and create a develop branch. Moving forward we should use the develop branch for any new features and bug fixes.

Get familiar with the basic offerings provided by the Alert Notification Service

Get familiar with the basic offerings provided by the Alert Notification Service (e.g. types of notifications supported; categorization of alerts; routing of notifications to individuals and/or groups; etc.).

As a reference:

Implement a HeliumLogger singleton

Using the singleton construct, we can initialize a single HeliumLogger for use in the code, circumventing the potential memory leak we saw previously.

Rework session code to use a single shared session

If we can use a single shared session instead of creating a new session for each request, we can remove the bugged finishTasksAndInvalidate() function. I suspect this will allow us to completely remove the KituraNet code and allow us to use pure URLSession on both macOS and Linux.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.