Add the sms to the collection of sms associated to the account.
@param sms
779324
public void addToSms(final Sms sms) {
		if (null == getSms()) {
			setSms(new java.util.TreeSet<Sms>());
		}
		getSms().add(sms);
	}
568611
private void addPostParams(final Request request) {
        if (phoneNumber != null) {
            request.addPostParam("PhoneNumber", phoneNumber.toString());
        }

        if (smsCapability != null) {
            request.addPostParam("SmsCapability", smsCapability.toString());
        }

        if (accountSid != null) {
            request.addPostParam("AccountSid", accountSid);
        }

        if (friendlyName != null) {
            request.addPostParam("FriendlyName", friendlyName);
        }

        if (uniqueName != null) {
            request.addPostParam("UniqueName", uniqueName);
        }

        if (ccEmails != null) {
            for (String prop : ccEmails) {
                request.addPostParam("CcEmails", prop);
            }
        }

        if (smsUrl != null) {
            request.addPostParam("SmsUrl", smsUrl.toString());
        }

        if (smsMethod != null) {
            request.addPostParam("SmsMethod", smsMethod.toString());
        }

        if (smsFallbackUrl != null) {
            request.addPostParam("SmsFallbackUrl", smsFallbackUrl.toString());
        }

        if (smsFallbackMethod != null) {
            request.addPostParam("SmsFallbackMethod", smsFallbackMethod.toString());
        }

        if (statusCallbackUrl != null) {
            request.addPostParam("StatusCallbackUrl", statusCallbackUrl.toString());
        }

        if (statusCallbackMethod != null) {
            request.addPostParam("StatusCallbackMethod", statusCallbackMethod.toString());
        }

        if (smsApplicationSid != null) {
            request.addPostParam("SmsApplicationSid", smsApplicationSid);
        }

        if (addressSid != null) {
            request.addPostParam("AddressSid", addressSid);
        }

        if (email != null) {
            request.addPostParam("Email", email);
        }

        if (verificationType != null) {
            request.addPostParam("VerificationType", verificationType.toString());
        }

        if (verificationDocumentSid != null) {
            request.addPostParam("VerificationDocumentSid", verificationDocumentSid);
        }
    }
253372
public void setMessage( Message message ) {
        Assert.notNull(message, "The message is required");
        Assert.hasText( message.getMessage(), "The message text is required" );
        this.message = message;
    }
89594
function SmsBatch (smsc, callback, smsarray) {
    var idx=0;

    // when message is processed move to next one otherwise call user applicationCB
    function InternalCB (data) {

        // [good or bad] let's notify user application
        if (data.status != 0) callback (data);

        // it's time to move to next message
        if (data.status <= 0) {
            if (++idx < smsarray.length) {
                new SmsRequest (smsc, InternalCB, smsarray [idx]);
            } else {
                callback ({status: 0});
            }
        }
    }

    // let's start by sending 1st SMS of the array
    new SmsRequest(smsc, InternalCB, smsarray [idx]);
}
53869
def send_sms(self, message, to, sender='elkme', options=[]):
        """"""
        sms = self.format_sms_payload(message=message,
            to=to,
            sender=sender,
            options=options)
        return self.query_api(sms)
751263
@Transactional
  public void addMissingMessageIds(String namespace, Set<String> messageIDs) {
    Set<String> alreadyPresent =
        getExistingMessages(namespace, messageIDs)
            .map(L10nString::getMessageID)
            .collect(toCollection(TreeSet::new));
    Set<String> toAdd = Sets.difference(messageIDs, alreadyPresent);
    if (!toAdd.isEmpty()) {
      Stream<L10nString> entities =
          toAdd
              .stream()
              .map(key -> l10nStringFactory.create(key).setMessageID(key))
              .map(l -> l.setNamespace(namespace));
      dataService.add(L10N_STRING, entities);
      LOG.debug("Added message IDs to namespace '{}' : {}.", namespace, messageIDs);
    }
  }
580816
public void addWarningMsgs(final Set<String> msgs) {
    if (msgs != null) {
      this._warningMsgs.addAll(msgs);
      if (!msgs.isEmpty() && this._errorMsgs.isEmpty()) {
        this._status = ValidationStatus.WARN;
      }
    }
  }
373473
private Integer sendSMS(Integer msgId, Integer senderId, 
                 String[] smsPhones, String labelAccount, String msgContent, 
                 Application app) throws InsufficientQuotaException {
		sendSms.mayCreateAccountAndCheckQuotaOk(smsPhones.length, labelAccount, app);
		return sendSms.sendSMS(msgId, senderId, smsPhones, labelAccount, msgContent, app);
	}
645263
void add(AppMsg appMsg) {
        msgQueue.add(appMsg);
        if (appMsg.mInAnimation == null) {
            appMsg.mInAnimation = AnimationUtils.loadAnimation(appMsg.getActivity(),
                    android.R.anim.fade_in);
        }
        if (appMsg.mOutAnimation == null) {
            appMsg.mOutAnimation = AnimationUtils.loadAnimation(appMsg.getActivity(),
                    android.R.anim.fade_out);
        }
        displayMsg();
    }
312033
@Override
    public String sendSMS(String CorpNum, String sender, String content,
                          Message[] Messages, Date reserveDT, Boolean adsYN, String UserID, String requestNum)
            throws PopbillException {
        return sendMessage(MessageType.SMS, CorpNum, sender, null, null, content,
                Messages, reserveDT, adsYN, UserID, requestNum);
    }
1165226
public void addMessageNow(String message) {
    ActionMessages messages = (ActionMessages) now.get(Flash.MESSAGES);
    if (null == messages) {
      messages = new ActionMessages();
      now.put(Flash.MESSAGES, messages);
    }
    messages.getMessages().add(message);
  }
971175
public void setMessages(java.util.Collection<Message> messages) {
        if (messages == null) {
            this.messages = null;
            return;
        }

        this.messages = new java.util.ArrayList<Message>(messages);
    }
199201
protected void addMessage(String message)
    {
        messages.add(message);
        messageCount++;
        if (messageCount > messagesQueueMax)
        {
            messages.remove();
            messageCount--;
        }
    }
1088831
@Override
	public void add(Collection<Object> values) {
		for(Object value : values)
			addOne(value);
	}
776431
protected void updateMessage() {

        if (!hasIndividualMessage()) {
            m_message = Messages.get().container(Messages.ERR_MULTI_EXCEPTION_1, new Integer(m_exceptions.size()));
        }
    }
44463
public function addMessage($text)
	{
		$this->isValid = false;
		$this->messages[] = $this->commonComment . $text;
	}
652342
public void add(Object id, String text)
    {
        List<Term> termList = preprocess(text);
        add(id, termList);
    }