Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/extensions/line/src/   (Openclaw AI Version 22©)  Datei vom 26.3.2026 mit Größe 1 kB image not shown  

Quelle  actions.ts

  Sprache: JAVA
 

import type { messagingApi } from "@line/bot-sdk";

export type Action = messagingApi.Action;

/**
 * Create a message action (sends text when tapped)
 */

export function messageAction(label: string, text?: string): Action {
  return {
    type: "message",
    label: label.slice(020),
    text: text ?? label,
  };
}

/**
 * Create a URI action (opens a URL when tapped)
 */

export function uriAction(label: string, uri: string): Action {
  return {
    type: "uri",
    label: label.slice(020),
    uri,
  };
}

/**
 * Create a postback action (sends data to webhook when tapped)
 */

export function postbackAction(label: string, data: string, displayText?: string): Action {
  return {
    type: "postback",
    label: label.slice(020),
    data: data.slice(0300),
    displayText: displayText?.slice(0300),
  };
}

/**
 * Create a datetime picker action
 */

export function datetimePickerAction(
  label: string,
  data: string,
  mode: "date" | "time" | "datetime",
  options?: {
    initial?: string;
    max?: string;
    min?: string;
  },
): Action {
  return {
    type: "datetimepicker",
    label: label.slice(020),
    data: data.slice(0300),
    mode,
    initial: options?.initial,
    max: options?.max,
    min: options?.min,
  };
}

Messung V0.5 in Prozent
C=98 H=96 G=96

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-13) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.