@classmethod
  @gen.coroutine
  def _FormatAlertSMS(cls, client, recipient_id, viewpoint, activity):
    """Gets the arguments to the SMS that will be sent to web-only customers who follow the
    activity's viewpoint.
    """
    if activity.name == 'share_new' or activity.name == 'add_followers':
      sms_args = yield AlertManager._FormatConversationSMS(client, recipient_id, viewpoint, activity)
    else:
      sms_args = None

    raise gen.Return(sms_args)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py/AlertManager._FormatAlertSMS/original