static void LogMessage(IntPtr @session, IntPtr @data) { var context = GetListener(session); context.Listener.LogMessage(context.Session, SpotifyMarshalling.Utf8ToString(data)); }
static void CredentialsBlobUpdated(IntPtr @session, IntPtr @blob) { var context = GetListener(session); context.Listener.CredentialsBlobUpdated(context.Session, SpotifyMarshalling.Utf8ToString(blob)); }
static void MessageToUser(IntPtr @session, IntPtr @message) { var context = GetListener(session); context.Listener.MessageToUser(context.Session, SpotifyMarshalling.Utf8ToString(message)); }
public static string ErrorMessage(SpotifyError error) { return(SpotifyMarshalling.Utf8ToString(NativeMethods.sp_error_message(error))); }
public static string BuildId() { return(SpotifyMarshalling.Utf8ToString(NativeMethods.sp_build_id())); }
static void track_message_changed(IntPtr @pl, int @position, IntPtr @message, IntPtr @userdata) { var context = GetListener(pl, userdata); context.Listener.TrackMessageChanged(context.Playlist, position, SpotifyMarshalling.Utf8ToString(message), context.Userdata); }
static void description_changed(IntPtr @pl, IntPtr @desc, IntPtr @userdata) { var context = GetListener(pl, userdata); context.Listener.DescriptionChanged(context.Playlist, SpotifyMarshalling.Utf8ToString(desc), context.Userdata); }