Skip to content

Use static strings or enumerations where possible #141

Closed

Description

@thinkingserious

Issue Summary

For the content types, please use static strings or enumerations so that it will look like:
Content content = new Content(Content.TYPE_HTML, "I'm replacing the body tag");

The same thing here:
request.endpoint = "mail/send";

Activity

  1. added
    type: community enhancement
    status: help wanted
    on Sep 16, 2016
  2. marcosbarbero commented on Oct 5, 2016

    @marcosbarbero

    Hi @thinkingserious, I just made a fork of the master branch and something looks weird.
    All the classes got the package com.sendgrid but none of them are under this package, they are under com.sendgrid.helpers.mail.*. Is it something that should be fixed as well?

  3. thinkingserious commented on Oct 5, 2016

    @thinkingserious
    ContributorAuthor

    Yes please, thanks!

  4. marcosbarbero commented on Oct 5, 2016

    @marcosbarbero

    Could you please provide some more info about the last part on the issue?

    request.endpoint = "mail/send";
    

    Where is it placed? I didn't found any reference.

  5. marcosbarbero commented on Oct 5, 2016

    @marcosbarbero

    As I can see the Request object is placed in another sendgrid project named java-http-client so this last piece must be in that project instead of here. Am I right?

  6. thinkingserious commented on Oct 5, 2016

    @thinkingserious
    ContributorAuthor

    @marcosbarbero,

    You are correct.

  7. marcosbarbero commented on Oct 5, 2016

    @marcosbarbero

    @thinkingserious I made a PR #148 and it's failing, I appreciate if you can help me.

  8. thinkingserious commented on Oct 5, 2016

    @thinkingserious
    ContributorAuthor

    @marcosbarbero,

    I'll take a look, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wantedtype: community enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions